Skip to content

Commit

Permalink
added support for both version. unpinned
Browse files Browse the repository at this point in the history
  • Loading branch information
jscaber committed Sep 20, 2023
1 parent f87829b commit 64503d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cgatcore/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def executewait(dbhandle, statement, regex_error="locked",
'''
while 1:
try:
cc = dbhandle.execute(statement)
except AttributeError:
with dbhandle.begin() as conn:
cc = conn.execute(sqlalchemy.text(statement))
except Exception as msg:
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/cgat-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
- ruffus
- setuptools
- six
- sqlalchemy>=2.0
- sqlalchemy
# Misc dependencies
- coreutils
- nomkl
Expand Down

0 comments on commit 64503d2

Please sign in to comment.