Add another zlib.error mapped to InvalidPasswordError.

This commit is contained in:
Jonathan Moody 2022-11-11 14:35:56 -06:00 committed by Lex Berezhny
parent 9e610cc54c
commit 2c20ad6c43

View file

@ -182,6 +182,8 @@ class Wallet:
raise InvalidPasswordError()
if "unknown compression method" in e.args[0].lower():
raise InvalidPasswordError()
if "invalid window size" in e.args[0].lower():
raise InvalidPasswordError()
raise
return json.loads(decompressed)