From 1851ec962f6a6e42fbb464505122106bb12e7af3 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 9 Dec 2020 18:31:08 +0100 Subject: [PATCH] trustedcoin: fix two-step wallet creation (offline->online) got broken in c46fbf08a525988f1a2f175906e00f084426c4ab --- electrum/plugins/trustedcoin/qt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/plugins/trustedcoin/qt.py b/electrum/plugins/trustedcoin/qt.py index 24e1e3864..0c0a61281 100644 --- a/electrum/plugins/trustedcoin/qt.py +++ b/electrum/plugins/trustedcoin/qt.py @@ -44,7 +44,7 @@ from electrum.i18n import _ from electrum.plugin import hook from electrum.util import is_valid_email from electrum.logging import Logger -from electrum.base_wizard import GoBack +from electrum.base_wizard import GoBack, UserCancelled from .trustedcoin import TrustedCoinPlugin, server @@ -229,7 +229,7 @@ class Plugin(TrustedCoinPlugin): wizard.reset_stack() try: wizard.confirm_dialog(title='', message=msg, run_next = lambda x: wizard.run('accept_terms_of_use')) - except GoBack: + except (GoBack, UserCancelled): # user clicked 'Cancel' and decided to move wallet file manually storage, db = wizard.create_storage(wizard.path) raise