Skip to content

Commit bb72bea

Browse files
committed
add more assumptions
1 parent a6d5d5c commit bb72bea

File tree

1 file changed

+1
-0
lines changed
  • packages/postgres-database/src/simcore_postgres_database

1 file changed

+1
-0
lines changed

packages/postgres-database/src/simcore_postgres_database/base_repo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ async def get_or_create_connection(
2121
yield connection
2222
finally:
2323
assert connection # nosec
24+
assert not connection.closed # nosec
2425
if is_connection_created and connection:
2526
await connection.close()
2627

0 commit comments

Comments
 (0)