Re: [sqlalchemy] 'unique' exception not translated by sqlalchemy

2019-03-25 Thread Jonathan Vanasco
On Monday, March 25, 2019 at 6:00:28 AM UTC-4, Simon King wrote: SQLAlchemy normally wraps all DBAPI exceptions in its own exception > classes. If that's not working for you, could you show an example that > we can run to reproduce the problem? In addition, please share the versions of

Re: [sqlalchemy] self relationship via intermediate table

2019-03-25 Thread kosta
Sure, thanks! пятница, 22 марта 2019 г., 19:39:06 UTC+3 пользователь Mike Bayer написал: > > On Fri, Mar 22, 2019 at 10:53 AM Konstantin Naumov > wrote: > > > > Great, thank you! > > > > I thought that I can use a field of relationship() - “invited_by" in > User model for emitting the

Re: [sqlalchemy] 'unique' exception not translated by sqlalchemy

2019-03-25 Thread Simon King
On Mon, Mar 25, 2019 at 8:04 AM wrote: > > I'm trying to use UNIQUE on a column in a table, catching exception in order > to determine conflict. > > Problem is that the exception I'm getting is sqlite3.IntegrityError. This is > not a SqlAlchemy exception, and its a problem since sqlite is

[sqlalchemy] 'unique' exception not translated by sqlalchemy

2019-03-25 Thread dan . bar . dov
I'm trying to use UNIQUE on a column in a table, catching exception in order to determine conflict. Problem is that the exception I'm getting is sqlite3.IntegrityError. This is not a SqlAlchemy exception, and its a problem since sqlite is temporary. I expected to get a ORM/SA exception, that