From a0761ff1aed0eae51eb712278fd01ead2dd65364 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 13 Aug 2022 23:38:13 +0100 Subject: [PATCH] LBYL --- modules/regproc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/regproc.py b/modules/regproc.py index facf120..6037ddd 100644 --- a/modules/regproc.py +++ b/modules/regproc.py @@ -168,9 +168,10 @@ def registerTest(c): confirmRegistration(c["net"], c["num"]) return if sinst["checktype"] == "msg": - if sinst["checkmsg"] in c["msg"]: - confirmRegistration(c["net"], c["num"]) - return + if "msg" in c.keys(): + if sinst["checkmsg"] in c["msg"]: + confirmRegistration(c["net"], c["num"]) + return elif sinst["checktype"] == "mode": if c["type"] == "self": if c["mtype"] == "mode":