recover from opening a corrupt database

This commit is contained in:
ed 2021-06-22 17:19:56 +02:00
parent 6249bd4163
commit f1a1c2ea45

View file

@ -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))