Skip to content

Commit

Permalink
[fix] Index version check was missing an indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnkn committed May 21, 2024
1 parent 76820c4 commit 9fe6557
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/ratarmountcore/SQLiteIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9fe6557

Please sign in to comment.