qt new_channel_dialog: fix None-handling for lnworker.suggest_peer()
fixes https://github.com/spesmilo/electrum/issues/7931
This commit is contained in:
@@ -88,7 +88,7 @@ class NewChannelDialog(WindowModalDialog):
|
||||
|
||||
def on_suggest(self):
|
||||
self.network.start_gossip()
|
||||
nodeid = self.lnworker.suggest_peer().hex() or ''
|
||||
nodeid = (self.lnworker.suggest_peer() or b"").hex()
|
||||
if not nodeid:
|
||||
self.remote_nodeid.setText("")
|
||||
self.remote_nodeid.setPlaceholderText(
|
||||
|
||||
Reference in New Issue
Block a user