Skip to content

Commit

Permalink
databases.files_db:FilesDB - only check initialisation if `check_init…
Browse files Browse the repository at this point in the history
…ialisation` is True
  • Loading branch information
MatteoCampinoti94 committed Nov 21, 2024
1 parent 4b940ef commit 1bfd08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acacore/database/files_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def __init__(

self.metadata: KeysTable[Metadata] = KeysTable(self.connection, Metadata, "metadata")

if (check_initialisation or check_version) and not self.is_initialised():
if check_initialisation and not self.is_initialised():
raise DatabaseError("Database is not initialized")

if check_version and self.is_initialised():
Expand Down

0 comments on commit 1bfd08d

Please sign in to comment.