Explorar el Código

Is cPickle haunting us again?

oz123 hace 11 años
padre
commit
aa3569bb85
Se han modificado 1 ficheros con 1 adiciones y 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