Add zlib.error string just observed for the first time.

This commit is contained in:
Jonathan Moody 2022-09-20 11:22:18 -05:00 committed by Lex Berezhny
parent ab50cfa5c1
commit d0aad8ccaf

View file

@ -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)