Skip to content

Commit f1c6798

Browse files
committed
qt: wizard: xpub can be None, fixes #10109
1 parent f79172c commit f1c6798

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

electrum/gui/qt/wizard/wallet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,8 @@ def get_xpub_task(_client, _derivation, _xtype):
14251425
except Exception as e:
14261426
self.error = repr(e) # TODO: handle user interaction exceptions (e.g. invalid pin) more gracefully
14271427
self.logger.exception(repr(e))
1428-
self.logger.debug(f'Done retrieve xpub: {self.xpub[:10]}...{self.xpub[-5:]}')
1428+
if self.xpub:
1429+
self.logger.debug(f'Done retrieve xpub: {self.xpub[:10]}...{self.xpub[-5:]}')
14291430
self.busy = False
14301431
self.validate()
14311432

0 commit comments

Comments
 (0)