Explorar o código

possible fix for #726987 in Debian

Not sure it's the correct way, but it might work.
See
https://mail.python.org/pipermail/python-list/2007-September/465169.html
oz123 %!s(int64=11) %!d(string=hai) anos
pai
achega
c72bddfcc3
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")
             # TODO: completely remove this block, and convert
             # the DB to a completely plain text ...
             return cPickle.loads(plaintext)
-        except (TypeError, cPickle.UnpicklingError):
+        except (TypeError, ValueError, cPickle.UnpicklingError):
             return plaintext