feat(api): pg_client fixed exception handler
This commit is contained in:
parent
cc84329547
commit
bec4bc37d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue