diff --git a/mdaadb/database.py b/mdaadb/database.py index 82d9bc0..c3a1cc5 100644 --- a/mdaadb/database.py +++ b/mdaadb/database.py @@ -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