fix loop breaking on missing clid

This commit is contained in:
Lukas 2021-10-11 22:51:53 +02:00
parent 78f82d64e5
commit 4d87558e0f
1 changed files with 6 additions and 2 deletions

View File

@ -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.")