1
0

fix IndexError if self.channel_ids is empty

This commit is contained in:
f321x
2025-05-12 10:00:38 +02:00
parent 05e395018c
commit 02232b227e

View File

@@ -524,7 +524,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
pass
def run_channels_tab(self, c):
if c == ord("\n"):
if c == ord("\n") and self.channel_ids:
out = self.run_popup('Channel Details', ['Short channel ID:', self.channel_ids[self.pos]])
def run_banner_tab(self, c):