From 9cd79ec2e54ac84ed09b85ea7056bc3dfd15e6c6 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 27 Jun 2020 16:03:03 +0200 Subject: [PATCH] WalletDB: raise different exc if cannot parse given file closes #6292 --- electrum/wallet_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/wallet_db.py b/electrum/wallet_db.py index ee0d9685b..eb49df0aa 100644 --- a/electrum/wallet_db.py +++ b/electrum/wallet_db.py @@ -83,7 +83,7 @@ class WalletDB(JsonDB): d = ast.literal_eval(s) labels = d.get('labels', {}) except Exception as e: - raise IOError("Cannot read wallet file") + raise WalletFileException("Cannot read wallet file. (parsing failed)") self.data = {} for key, value in d.items(): try: