Fix crash

This commit is contained in:
Sijmen Schoon 2016-11-16 14:08:55 +00:00
parent a1ca8d48cd
commit 29fa9086c6

View File

@ -205,6 +205,8 @@ async def matrix_transaction(request):
displayname = sender.name or get_username(user_id)
content = event['content']
if 'msgtype' not in content:
continue
if content['msgtype'] == 'm.text':
msg, mode = format_matrix_msg('<{}> {}', displayname, content)
await group.send_text(msg, parse_mode=mode)