diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-06-17 13:49:16 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-06-17 13:49:16 +0100 |
commit | ded01c3bf65fd6bb83c9d3546ea44859208e4578 (patch) | |
tree | e387f06e7099d7418b2878c4548efd00a5d1ad18 /synapse/state.py | |
parent | Fix setting gc thresholds in the workers (diff) | |
download | synapse-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 'synapse/state.py')
0 files changed, 0 insertions, 0 deletions