summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-06-17 13:49:16 +0100
committerMark Haines <mark.haines@matrix.org>2016-06-17 13:49:16 +0100
commitded01c3bf65fd6bb83c9d3546ea44859208e4578 (patch)
treee387f06e7099d7418b2878c4548efd00a5d1ad18 /scripts-dev
parentFix setting gc thresholds in the workers (diff)
downloadsynapse-ded01c3bf65fd6bb83c9d3546ea44859208e4578.tar.xz
Fix ``KeyError: 'msgtype'``. Use ``.get``
Fixes a key error where the mailer tried to get the ``msgtype`` of an
event that was missing a ``msgtype``.

```
 File "synapse/push/mailer.py", line 264, in get_notif_vars
 File "synapse/push/mailer.py", line 285, in get_message_vars
 File ".../frozendict/__init__.py", line 10, in __getitem__
    return self.__dict[key]
    KeyError: 'msgtype'
```
Diffstat (limited to 'scripts-dev')
0 files changed, 0 insertions, 0 deletions