summary refs log tree commit diff
path: root/synapse/event_auth.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-10-03 11:57:30 +0100
committerErik Johnston <erik@matrix.org>2018-10-03 11:57:30 +0100
commit69e857853fe91d22fa792c9e26edd87840526c22 (patch)
treefcebcd06c8ecf2a3d2235dad9a62e88310533d7f /synapse/event_auth.py
parentMerge pull request #3991 from matrix-org/erikj/fix_pop_retry_cache (diff)
downloadsynapse-69e857853fe91d22fa792c9e26edd87840526c22.tar.xz
Fix handling of rejected threepid invites
Diffstat (limited to 'synapse/event_auth.py')
-rw-r--r--synapse/event_auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/event_auth.py b/synapse/event_auth.py
index 02fa46ef7f..c6c011b6b6 100644
--- a/synapse/event_auth.py
+++ b/synapse/event_auth.py
@@ -157,7 +157,7 @@ def check(event, auth_events, do_sig_check=True, do_size_check=True):
             raise AuthError(
                 403, (
                     "You cannot issue a third party invite for %s." %
-                    (event.content.display_name,)
+                    (event.content.get("display_name", "<Unknown>"),)
                 )
             )
         else: