From 4d87558e0faaeee00c668a7432e36efe79b33304 Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 11 Oct 2021 22:51:53 +0200 Subject: [PATCH] fix loop breaking on missing clid --- myTS3.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/myTS3.py b/myTS3.py index 843ec6b..8243dcf 100644 --- a/myTS3.py +++ b/myTS3.py @@ -4,7 +4,7 @@ TBD __author__ = "Lukas Mahler" __version__ = "0.0.0" -__date__ = "07.10.2021" +__date__ = "11.10.2021" __email__ = "m@hler.eu" __status__ = "Development" @@ -169,8 +169,12 @@ class TSbot: if 'client_nickname' in event[0]: displayname = event[0]['client_nickname'] - else: + elif 'clid' in event[0]: displayname = event[0]['clid'] + else: + self.pipeOut(event[0]) + # displayname = "Unresolved" + continue # can't resolve no clid self.pipeOut(f"Clientid [{displayname}] disconnected.")