Эх сурвалжийг харах

Is cPickle haunting us again?

oz123 11 жил өмнө
parent
commit
aa3569bb85
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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