From ce79d15345015b1b2b8257f7fd65113ad1636fed Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Mon, 23 Dec 2024 15:55:09 +0100 Subject: [PATCH] Crash if user attempts to load new DB on old Tauon (starting with 7.9.0 and onwards) --- src/tauon/t_modules/t_main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tauon/t_modules/t_main.py b/src/tauon/t_modules/t_main.py index e2bfbb10d..4e46219e0 100644 --- a/src/tauon/t_modules/t_main.py +++ b/src/tauon/t_modules/t_main.py @@ -3137,6 +3137,9 @@ def pumper(): db_version = save[17] if db_version != latest_db_version: + if db_version > latest_db_version: + logging.critical(f"Loaded DB version: '{db_version}' is newer than latest known DB version '{latest_db_version}', refusing to load!") + sys.exit(42) logging.warning(f"Loaded older DB version: {db_version}") if save[63] is not None: prefs.ui_scale = save[63]