mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
recover from opening a corrupt database
This commit is contained in:
parent
6249bd4163
commit
f1a1c2ea45
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue