Browse Source

qt init: don't catch BaseException unless there is good reason

let KeyboardInterrupt propagate out
patch-4
SomberNight 4 years ago
parent
commit
e686b40819
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 6
      electrum/gui/qt/__init__.py

6
electrum/gui/qt/__init__.py

@ -255,7 +255,7 @@ class ElectrumGui(Logger):
wallet = None wallet = None
try: try:
wallet = self.daemon.load_wallet(path, None) wallet = self.daemon.load_wallet(path, None)
except BaseException as e: except Exception as e:
self.logger.exception('') self.logger.exception('')
custom_message_box(icon=QMessageBox.Warning, custom_message_box(icon=QMessageBox.Warning,
parent=None, parent=None,
@ -282,7 +282,7 @@ class ElectrumGui(Logger):
break break
else: else:
window = self._create_window_for_wallet(wallet) window = self._create_window_for_wallet(wallet)
except BaseException as e: except Exception as e:
self.logger.exception('') self.logger.exception('')
custom_message_box(icon=QMessageBox.Warning, custom_message_box(icon=QMessageBox.Warning,
parent=None, parent=None,
@ -352,7 +352,7 @@ class ElectrumGui(Logger):
return return
except GoBack: except GoBack:
return return
except BaseException as e: except Exception as e:
self.logger.exception('') self.logger.exception('')
return return
self.timer.start() self.timer.start()

Loading…
Cancel
Save