tfix raise UserCacnelled calls (#6304) - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit 949b247b19d51de3a96c8d0afe6a957663176780
 (DIR) parent 528c8c674c9c610ec1513c121f73cba51195194d
 (HTM) Author: zebra-lucky <zebra.lucky@gmail.com>
       Date:   Wed,  1 Jul 2020 18:37:31 +0300
       
       fix raise UserCacnelled calls (#6304)
       
       
       Diffstat:
         M electrum/gui/qt/installwizard.py    |       4 ++--
         M electrum/plugins/trezor/clientbase… |       2 +-
       
       2 files changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/electrum/gui/qt/installwizard.py b/electrum/gui/qt/installwizard.py
       t@@ -299,7 +299,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
                def run_user_interaction_loop():
                    while True:
                        if self.loop.exec_() != 2:  # 2 = next
       -                    raise UserCancelled
       +                    raise UserCancelled()
                        assert temp_storage
                        if temp_storage.file_exists() and not temp_storage.is_encrypted():
                            break
       t@@ -423,7 +423,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
                self.set_layout(layout, title, next_enabled)
                result = self.loop.exec_()
                if not result and raise_on_cancel:
       -            raise UserCancelled
       +            raise UserCancelled()
                if result == 1:
                    raise GoBack from None
                self.title.setVisible(False)
 (DIR) diff --git a/electrum/plugins/trezor/clientbase.py b/electrum/plugins/trezor/clientbase.py
       t@@ -79,7 +79,7 @@ class TrezorClientBase(HardwareClientBase, Logger):
                self.end_flow()
                if e is not None:
                    if isinstance(e, Cancelled):
       -                raise UserCancelled from e
       +                raise UserCancelled() from e
                    elif isinstance(e, TrezorFailure):
                        raise RuntimeError(str(e)) from e
                    elif isinstance(e, OutdatedFirmwareError):