From 72fd6c5dea537de5ff3bc7c7787ae3b05e4377dc Mon Sep 17 00:00:00 2001 From: StijnBTC Date: Tue, 10 Aug 2021 23:04:17 +0200 Subject: [PATCH] check if channelid is numeric --- status.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/status.py b/status.py index 1cb0ace..1ade976 100644 --- a/status.py +++ b/status.py @@ -38,6 +38,9 @@ class Status: for channelID in channels: if len(channelID) != 18: continue + if not channelID.isnumeric(): + continue + response = self.lnd.get_edge(int(channelID)) node1 = self.lnd.get_node(response.node1_pub) node2 = self.lnd.get_node(response.node2_pub)