tqt: if cannot load wallet, print trace - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7f04c305676df739b8ba00137df22011f9477488 DIR parent 172efb3611e1a493c324d9e78ae9e461852e32bd HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 14 Feb 2018 18:10:58 +0100 qt: if cannot load wallet, print trace Diffstat: M gui/qt/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- DIR diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py t@@ -25,6 +25,7 @@ import signal import sys +import traceback try: t@@ -192,7 +193,8 @@ class ElectrumGui: else: try: wallet = self.daemon.load_wallet(path, None) - except BaseException as e: + except BaseException as e: + traceback.print_exc(file=sys.stdout) d = QMessageBox(QMessageBox.Warning, _('Error'), 'Cannot load wallet:\n' + str(e)) d.exec_() return t@@ -243,8 +245,7 @@ class ElectrumGui: return except GoBack: return - except: - import traceback + except BaseException as e: traceback.print_exc(file=sys.stdout) return self.timer.start()