Skip to content

Commit

Permalink
Crash if user attempts to load new DB on old Tauon (starting with 7.9…
Browse files Browse the repository at this point in the history
….0 and onwards)
  • Loading branch information
C0rn3j committed Dec 23, 2024
1 parent f0aab7b commit ce79d15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ce79d15

Please sign in to comment.