diff --git a/electrum/gui/qt/installwizard.py b/electrum/gui/qt/installwizard.py index 1e70bd413..c8dbee2b5 100644 --- a/electrum/gui/qt/installwizard.py +++ b/electrum/gui/qt/installwizard.py @@ -109,8 +109,10 @@ def wizard_dialog(func): except GoBack: if not wizard.can_go_back(): wizard.close() - # to go back from the current dialog, we just let the caller unroll the stack: - raise + raise UserCancelled + else: + # to go back from the current dialog, we just let the caller unroll the stack: + raise # next dialog try: while True: