traise exception when seed version does not match - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 6d8eebe2dbda262f6ee054f3565bf1f34b6d8756 DIR parent 9b28ed9ba070c1ee0c8daad21959592542e3023a HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 15 Nov 2014 14:42:35 +0100 raise exception when seed version does not match Diffstat: M gui/qt/__init__.py | 1 + M lib/wallet.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py t@@ -154,6 +154,7 @@ class ElectrumGui: try: wallet = Wallet(storage) except BaseException as e: + traceback.print_exc(file=sys.stdout) QMessageBox.warning(None, _('Warning'), str(e), _('OK')) return action = wallet.get_action() DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1628,8 +1628,7 @@ class Wallet(object): msg = "This wallet seed is not supported anymore." if seed_version in [5, 7, 8, 9]: msg += "\nTo open this wallet, try 'git checkout seed_v%d'"%seed_version - print msg - sys.exit(1) + raise BaseException(msg) run_hook('add_wallet_types', wallet_types) wallet_type = storage.get('wallet_type')