feat(api): pg_client fixed exception handler

This commit is contained in:
Taha Yassine Kraiem 2021-09-05 14:25:43 +01:00
parent cc84329547
commit bec4bc37d5

View file

@ -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: