Added another catcher for an KeyError in the request participants callback
This commit is contained in:
parent
2b488ee1f8
commit
c46a4f6012
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user