Procházet zdrojové kódy

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 před 11 roky
rodič
revize
c72bddfcc3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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