Skip to content

Commit bcf3b2f

Browse files
committed
fix: prevent future library versions from being opened
1 parent d94befe commit bcf3b2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tagstudio/src/core/library/alchemy/library.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ def open_sqlite_library(self, library_dir: Path, is_new: bool) -> LibraryStatus:
367367
if db_result:
368368
db_version = db_result.value # type: ignore
369369

370-
if db_version < 6: # NOTE: DB_VERSION 6 is the first supported SQL DB version.
370+
# NOTE: DB_VERSION 6 is the first supported SQL DB version.
371+
if db_version < 6 or db_version > LibraryPrefs.DB_VERSION.default:
371372
mismatch_text = Translations["status.library_version_mismatch"]
372373
found_text = Translations["status.library_version_found"]
373374
expected_text = Translations["status.library_version_expected"]

0 commit comments

Comments
 (0)