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: