mirror of
https://github.com/9001/copyparty.git
synced 2026-01-17 18:48:37 +10:00
recover from opening a corrupt database
This commit is contained in:
@@ -901,7 +901,7 @@ class Up2k(object):
|
||||
except:
|
||||
self.log("WARN: could not list files; DB corrupt?\n" + min_ex())
|
||||
|
||||
elif ver > DB_VER:
|
||||
if (ver or 0) > DB_VER:
|
||||
m = "database is version {}, this copyparty only supports versions <= {}"
|
||||
raise Exception(m.format(ver, DB_VER))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user