From 29fa9086c6c868dc4a071edf06678d4d52c9b4ae Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Wed, 16 Nov 2016 14:08:55 +0000 Subject: [PATCH] Fix crash --- telematrix/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telematrix/__init__.py b/telematrix/__init__.py index 7ad7953..b54976c 100644 --- a/telematrix/__init__.py +++ b/telematrix/__init__.py @@ -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)