Browse Source

WalletDB: raise different exc if cannot parse given file

closes #6292
bip39-recovery
SomberNight 5 years ago
parent
commit
9cd79ec2e5
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/wallet_db.py

2
electrum/wallet_db.py

@ -83,7 +83,7 @@ class WalletDB(JsonDB):
d = ast.literal_eval(s) d = ast.literal_eval(s)
labels = d.get('labels', {}) labels = d.get('labels', {})
except Exception as e: except Exception as e:
raise IOError("Cannot read wallet file") raise WalletFileException("Cannot read wallet file. (parsing failed)")
self.data = {} self.data = {}
for key, value in d.items(): for key, value in d.items():
try: try:

Loading…
Cancel
Save