Roundup Tracker - Issues

Message7669

Author rouilj
Recipients rouilj, schlatterbeck
Date 2022-11-23.23:08:43
Message-id <1669244923.1.0.54081465031.issue2551241@roundup.psfhosted.org>
In-reply-to
Looks like errors is new in version 2.8 of psycopg2. https://www.psycopg.org/docs/errors.html

Can you try:

  from psycopg2 import InFailedSqlTransaction, SyntaxError, \
                                UndefinedObject

and see if that works. If so wrap the `from psycopg.errors import` in a try/except and
put the `from psycopg2 import` in the except clause.
History
Date User Action Args
2022-11-23 23:08:43rouiljsetmessageid: <1669244923.1.0.54081465031.issue2551241@roundup.psfhosted.org>
2022-11-23 23:08:43rouiljsetrecipients: + rouilj, schlatterbeck
2022-11-23 23:08:43rouiljlinkissue2551241 messages
2022-11-23 23:08:43rouiljcreate