From 9fe65578c075bafb83252436718f80ac88e9cf52 Mon Sep 17 00:00:00 2001 From: mxmlnkn Date: Tue, 21 May 2024 10:00:36 +0200 Subject: [PATCH] [fix] Index version check was missing an indentation --- core/ratarmountcore/SQLiteIndex.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/ratarmountcore/SQLiteIndex.py b/core/ratarmountcore/SQLiteIndex.py index cc8effce..3bcd5a28 100644 --- a/core/ratarmountcore/SQLiteIndex.py +++ b/core/ratarmountcore/SQLiteIndex.py @@ -949,10 +949,10 @@ def loadIndex(self, indexFilePath: AnyStr) -> None: if indexVersion: indexVersionTuple = _toVersionTuple(indexVersion) indexAPIVersionTuple = _toVersionTuple(SQLiteIndex.__version__) - if indexVersionTuple and indexAPIVersionTuple and indexVersionTuple > indexAPIVersionTuple: - print("[Warning] The loaded index was created with a newer version of ratarmount.") - print("[Warning] If there are any problems, please update ratarmount or recreate the index") - print("[Warning] with this ratarmount version using the --recreate-index option!") + if indexVersionTuple and indexAPIVersionTuple and indexVersionTuple > indexAPIVersionTuple: + print("[Warning] The loaded index was created with a newer version of ratarmount.") + print("[Warning] If there are any problems, please update ratarmount or recreate the index") + print("[Warning] with this ratarmount version using the --recreate-index option!") except Exception: pass