We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 083bf5e commit a11c9b9Copy full SHA for a11c9b9
src/cs50/sql.py
@@ -388,7 +388,7 @@ def shutdown_session(exception=None):
388
raise e
389
390
# If user errror
391
- except sqlalchemy.exc.OperationalError as e:
+ except (sqlalchemy.exc.OperationalError, sqlalchemy.exc.ProgrammingError) as e:
392
self._disconnect()
393
self._logger.debug(termcolor.colored(statement, "red"))
394
e = RuntimeError(e.orig)
0 commit comments