diff --git a/src/rda_python_common/PgDBI.py b/src/rda_python_common/PgDBI.py index 0535b92..a0bf759 100644 --- a/src/rda_python_common/PgDBI.py +++ b/src/rda_python_common/PgDBI.py @@ -280,7 +280,7 @@ def starttran(): else: try: pgdb.isolation_level - except OperationalError as e: + except PgSQL.OperationalError as e: pgconnect(0, 0, False) if pgdb.closed: pgconnect(0, 0, False)