From b286d7b47e815f622139e6d96b2ad2d34c2271ce Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 9 Apr 2019 19:18:24 +0930 Subject: [PATCH] summary: fix bug where we're connected to a node without node_announce Signed-off-by: Rusty Russell --- summary/summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/summary/summary.py b/summary/summary.py index 0b1c877..d4453db 100755 --- a/summary/summary.py +++ b/summary/summary.py @@ -153,7 +153,7 @@ def summary(plugin): s += '({})'.format(extra) node = plugin.rpc.listnodes(c[3])['nodes'] - if len(node) != 0: + if len(node) != 0 and 'alias' in node[0]: s += ':' + node[0]['alias'] else: s += ':' + c[3][0:32]