forked from LBRYCommunity/lbry-sdk
Add another zlib.error mapped to InvalidPasswordError.
This commit is contained in:
parent
9e610cc54c
commit
2c20ad6c43
1 changed files with 2 additions and 0 deletions
|
@ -182,6 +182,8 @@ class Wallet:
|
||||||
raise InvalidPasswordError()
|
raise InvalidPasswordError()
|
||||||
if "unknown compression method" in e.args[0].lower():
|
if "unknown compression method" in e.args[0].lower():
|
||||||
raise InvalidPasswordError()
|
raise InvalidPasswordError()
|
||||||
|
if "invalid window size" in e.args[0].lower():
|
||||||
|
raise InvalidPasswordError()
|
||||||
raise
|
raise
|
||||||
return json.loads(decompressed)
|
return json.loads(decompressed)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue