Skip to content

Commit dba577c

Browse files
committed
revert
1 parent 30ff742 commit dba577c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

genotype_api/database/database.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,4 @@ def get_tables() -> list[str]:
6363

6464
def close_session():
6565
"""Close the global database session of the genotype api."""
66-
if SESSION is None:
67-
return
68-
session = SESSION()
69-
try:
70-
if session.dirty:
71-
session.flush()
72-
except Exception:
73-
session.rollback()
74-
raise GenotypeDBError
75-
finally:
76-
SESSION.remove()
66+
SESSION.remove()

0 commit comments

Comments
 (0)