From e13820bbf004eb7b15788a53fe94a534713899a2 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Thu, 15 Apr 2021 12:05:03 +0200 Subject: [PATCH] Update exception upon migration of database #1935 --- cps/config_sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/config_sql.py b/cps/config_sql.py index 3e5e4c59..6e1ff54e 100644 --- a/cps/config_sql.py +++ b/cps/config_sql.py @@ -358,7 +358,7 @@ def _migrate_table(session, orm_class): if column_name[0] != '_': try: session.query(column).first() - except exc.OperationalError as err: + except OperationalError as err: log.debug("%s: %s", column_name, err.args[0]) if column.default is not None: if sys.version_info < (3, 0):