From bec4bc37d55fb45c23b67e74c21dd0735d2e811b Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Sun, 5 Sep 2021 14:25:43 +0100 Subject: [PATCH] feat(api): pg_client fixed exception handler --- api/chalicelib/utils/pg_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/utils/pg_client.py b/api/chalicelib/utils/pg_client.py index ba72868d6..c54e514ec 100644 --- a/api/chalicelib/utils/pg_client.py +++ b/api/chalicelib/utils/pg_client.py @@ -51,7 +51,7 @@ class PostgresClient: try: self.connection.commit() self.cursor.close() - except: + except Exception as error: print("Error while committing/closing PG-connection", error) raise error finally: