forked from LBRYCommunity/lbry-sdk
Add zlib.error string just observed for the first time.
This commit is contained in:
parent
ab50cfa5c1
commit
d0aad8ccaf
1 changed files with 2 additions and 0 deletions
|
@ -177,6 +177,8 @@ class Wallet:
|
|||
except zlib.error as e:
|
||||
if "incorrect header check" in e.args[0].lower():
|
||||
raise InvalidPasswordError()
|
||||
if "unknown compression method" in e.args[0].lower():
|
||||
raise InvalidPasswordError()
|
||||
raise
|
||||
return json.loads(decompressed)
|
||||
|
||||
|
|
Loading…
Reference in a new issue