فهرست منبع

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 11 سال پیش
والد
کامیت
c72bddfcc3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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