electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 9cd79ec2e54ac84ed09b85ea7056bc3dfd15e6c6
parent 01a2d127878642c8bcb123e5e7f3de744aeb071c
Author: SomberNight <somber.night@protonmail.com>
Date:   Sat, 27 Jun 2020 16:03:03 +0200

WalletDB: raise different exc if cannot parse given file

closes #6292

Diffstat:
Melectrum/wallet_db.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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: