Browse Source

hw wallets: handle cancellation for "query_choice" in wizard

E | gui.qt.exception_window.Exception_Hook | exception caught by crash reporter
Traceback (most recent call last):
  File "...\electrum\electrum\plugins\hw_wallet\qt.py", line 193, in win_query_choice
    self.choice = self.win.query_choice(msg, labels)
  File "...\electrum\electrum\gui\qt\installwizard.py", line 545, in query_choice
    self.exec_layout(vbox, '')
  File "...\electrum\electrum\gui\qt\installwizard.py", line 392, in exec_layout
    raise UserCancelled
electrum.util.UserCancelled
hard-fail-on-bad-server-string
SomberNight 5 years ago
parent
commit
7297e94970
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 5
      electrum/plugins/hw_wallet/qt.py

5
electrum/plugins/hw_wallet/qt.py

@ -190,7 +190,10 @@ class QtHandlerBase(HardwareHandlerBase, QObject, Logger):
self.dialog = None
def win_query_choice(self, msg, labels):
self.choice = self.win.query_choice(msg, labels)
try:
self.choice = self.win.query_choice(msg, labels)
except UserCancelled:
self.choice = None
self.done.set()
def win_yes_no_question(self, msg):

Loading…
Cancel
Save