Message7669
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. |
|
Date |
User |
Action |
Args |
2022-11-23 23:08:43 | rouilj | set | messageid: <1669244923.1.0.54081465031.issue2551241@roundup.psfhosted.org> |
2022-11-23 23:08:43 | rouilj | set | recipients:
+ rouilj, schlatterbeck |
2022-11-23 23:08:43 | rouilj | link | issue2551241 messages |
2022-11-23 23:08:43 | rouilj | create | |
|