From 9b03485b69c9a6cb64e72fbf14db9545f058357a 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]