From b42c82eac211ae5d0a371e59b4d2b539ab0db768 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 2 Aug 2022 09:01:24 +0100 Subject: [PATCH] More error handling when joining channels with ChanKeep --- modules/chankeep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/chankeep.py b/modules/chankeep.py index dfd334d..a1d13cd 100644 --- a/modules/chankeep.py +++ b/modules/chankeep.py @@ -136,6 +136,8 @@ def keepChannels(net, listinfo, mean, sigrelay, relay): def joinSingle(net, channel): eca = emptyChanAllocate(net, [channel], None, []) + if not eca: + return False if not len(eca.keys()) == 1: return False num = list(eca.keys())[0]