From 93fa9a9d69f3c7965e46a2c8094663a679755e3a Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 4 Mar 2019 02:46:50 +0100 Subject: [PATCH] wizard: partial revert of 2da6692f73921f3b651569900a63e9f3ce7fbc57 --- electrum/gui/qt/installwizard.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qt/installwizard.py b/electrum/gui/qt/installwizard.py index 3a2da6271..b516ceebd 100644 --- a/electrum/gui/qt/installwizard.py +++ b/electrum/gui/qt/installwizard.py @@ -283,8 +283,10 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard): traceback.print_exc(file=sys.stdout) QMessageBox.information(None, _('Error'), str(e)) raise UserCancelled() - assert self.temp_storage.is_past_initial_decryption() - break + if self.temp_storage.is_past_initial_decryption(): + break + else: + raise UserCancelled() else: raise Exception('Unexpected encryption version')