summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--synapse/handlers/groups_local.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/handlers/groups_local.py b/synapse/handlers/groups_local.py
index 3b676d46bd..97a20f2b04 100644
--- a/synapse/handlers/groups_local.py
+++ b/synapse/handlers/groups_local.py
@@ -313,8 +313,11 @@ class GroupsLocalHandler(object):
         self.notifier.on_new_event(
             "groups_key", token, users=[user_id],
         )
-
-        user_profile = yield self.profile_handler.get_profile(user_id)
+        try:
+            user_profile = yield self.profile_handler.get_profile(user_id)
+        except Exception as e:
+            logger.warn("No profile for user %s: %s", user_id, e)
+            user_profile = {}
 
         defer.returnValue({"state": "invite", "user_profile": user_profile})