Skip to content

Commit

Permalink
Revert "database.files_db:FileDB - check initialisation before version"
Browse files Browse the repository at this point in the history
This reverts commit 7adb4d2.
  • Loading branch information
MatteoCampinoti94 committed Nov 21, 2024
1 parent 7adb4d2 commit 34a4423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acacore/database/files_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ def __init__(
],
)

if (check_initialisation or check_version) and not self.is_initialised(check_views=False, check_indices=False):
if check_initialisation and not self.is_initialised(check_views=False, check_indices=False):
raise DatabaseError("Database is not initialised")

if check_version:
if check_version and self.is_initialised():
from acacore.database.upgrade import is_latest

is_latest(self, raise_on_difference=True)
Expand Down

0 comments on commit 34a4423

Please sign in to comment.