Explorar o código

Is cPickle haunting us again?

oz123 %!s(int64=11) %!d(string=hai) anos
pai
achega
aa3569bb85
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pwman/util/crypto.py

+ 1 - 1
pwman/util/crypto.py

@@ -404,7 +404,7 @@ password again")
             # TODO: completely remove this block, and convert
             # the DB to a completely plain text ...
             return cPickle.loads(plaintext)
-        except (TypeError, ValueError, cPickle.UnpicklingError):
+        except (TypeError, ValueError, cPickle.UnpicklingError, EOFError):
             return plaintext