Skip to content

Commit

Permalink
Add zlib.error string just observed for the first time.
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyjon authored and eukreign committed Sep 30, 2022
1 parent ab50cfa commit d0aad8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lbry/wallet/wallet.py
Expand Up @@ -177,6 +177,8 @@ def unpack(cls, password, encrypted):
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)

Expand Down

0 comments on commit d0aad8c

Please sign in to comment.