Added another catcher for an KeyError in the request participants callback

This commit is contained in:
Dennis Potter 2019-02-02 16:25:32 +01:00
parent 2b488ee1f8
commit c46a4f6012
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF

View File

@ -282,6 +282,7 @@ class Plugin:
room.send_html(self.messages['info_event_id_err'])
return
try:
# Set header
html_message = self.messages['event_participants_head'].format(
len(self.adm.events[id_event].getAllAttend()),
@ -329,6 +330,8 @@ class Plugin:
html_message += "</ul>"
room.send_html(html_message)
except KeyError:
room.send_html(self.messages['unknown_event'])
def chat_callback(self, room, event):
room.send_text("Chat")