From f1a1c2ea45dd4dc2db86065bdb625eb0301e80fa Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 22 Jun 2021 17:19:56 +0200 Subject: [PATCH] recover from opening a corrupt database --- copyparty/up2k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index eed2e16a..330c5f08 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -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))