fix IndexError if self.channel_ids is empty
This commit is contained in:
@@ -524,7 +524,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def run_channels_tab(self, c):
|
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]])
|
out = self.run_popup('Channel Details', ['Short channel ID:', self.channel_ids[self.pos]])
|
||||||
|
|
||||||
def run_banner_tab(self, c):
|
def run_banner_tab(self, c):
|
||||||
|
|||||||
Reference in New Issue
Block a user