Skip to content

Commit

Permalink
fixing database.closed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
edisj committed Jul 26, 2024
1 parent 15bad5b commit a5a4c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdaadb/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def close(self) -> None:
def closed(self) -> bool:
"""Whether the connection to database is closed or not."""
try:
self.SELECT("*").FROM("sqlite_schema").LIMIT("1")
self.SELECT("*").FROM("sqlite_schema").LIMIT("1").execute()
return False
except sqlite3.ProgrammingError:
return True
Expand Down

0 comments on commit a5a4c80

Please sign in to comment.