"Teilnehmer verlässt Raum" hinzu

This commit is contained in:
Reik Kaps 2020-06-19 22:56:13 +02:00
parent ea9d151631
commit 54abce2ea7
1 changed files with 8 additions and 3 deletions

View File

@ -213,8 +213,13 @@ def process_line(line):
# participant is leaving a the room # participant is leaving a the room
leaving_match = leaving.match(erg.group(7)) leaving_match = leaving.match(erg.group(7))
if leaving_match: if leaving_match:
try:
room_name = member_match.group(1).strip() room_name = member_match.group(1).strip()
room_member = member_match.group(3).strip() room_member = member_match.group(3).strip()
except:
room_name = 'undefined'
room_member = 'undefined'
print('{} leaves {}'.format(room_member, room_name)) print('{} leaves {}'.format(room_member, room_name))
if room_name in roomList: if room_name in roomList:
roomList[room_name].delMember(room_member) roomList[room_name].delMember(room_member)