summary refs log tree commit diff
diff options
context:
space:
mode:
-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: