From f1c6798710153a8a2d54e1a9b25775fa9250d30e Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 7 Aug 2025 09:19:54 +0200 Subject: [PATCH] qt: wizard: xpub can be None, fixes #10109 --- electrum/gui/qt/wizard/wallet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/wizard/wallet.py b/electrum/gui/qt/wizard/wallet.py index 9ca28100a..fd12408b2 100644 --- a/electrum/gui/qt/wizard/wallet.py +++ b/electrum/gui/qt/wizard/wallet.py @@ -1425,7 +1425,8 @@ class WCHWXPub(WalletWizardComponent, Logger): except Exception as e: self.error = repr(e) # TODO: handle user interaction exceptions (e.g. invalid pin) more gracefully self.logger.exception(repr(e)) - self.logger.debug(f'Done retrieve xpub: {self.xpub[:10]}...{self.xpub[-5:]}') + if self.xpub: + self.logger.debug(f'Done retrieve xpub: {self.xpub[:10]}...{self.xpub[-5:]}') self.busy = False self.validate()