Skip to content

Commit d0aad8c

Browse files
moodyjoneukreign
authored andcommitted
Add zlib.error string just observed for the first time.
1 parent ab50cfa commit d0aad8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lbry/wallet/wallet.py

+2
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ def unpack(cls, password, encrypted):
177177
except zlib.error as e:
178178
if "incorrect header check" in e.args[0].lower():
179179
raise InvalidPasswordError()
180+
if "unknown compression method" in e.args[0].lower():
181+
raise InvalidPasswordError()
180182
raise
181183
return json.loads(decompressed)
182184

0 commit comments

Comments
 (0)