From e686b4081942ee69041338faa277774eb1c1ca7d Mon Sep 17 00:00:00 2001 From: SomberNight <somber.night@protonmail.com> Date: Sat, 3 Apr 2021 01:47:44 +0200 Subject: [PATCH] qt init: don't catch BaseException unless there is good reason let KeyboardInterrupt propagate out --- electrum/gui/qt/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qt/__init__.py b/electrum/gui/qt/__init__.py index cdfe9d538..57815aaff 100644 --- a/electrum/gui/qt/__init__.py +++ b/electrum/gui/qt/__init__.py @@ -255,7 +255,7 @@ class ElectrumGui(Logger): wallet = None try: wallet = self.daemon.load_wallet(path, None) - except BaseException as e: + except Exception as e: self.logger.exception('') custom_message_box(icon=QMessageBox.Warning, parent=None, @@ -282,7 +282,7 @@ class ElectrumGui(Logger): break else: window = self._create_window_for_wallet(wallet) - except BaseException as e: + except Exception as e: self.logger.exception('') custom_message_box(icon=QMessageBox.Warning, parent=None, @@ -352,7 +352,7 @@ class ElectrumGui(Logger): return except GoBack: return - except BaseException as e: + except Exception as e: self.logger.exception('') return self.timer.start()