summary refs log tree commit diff
path: root/synapse/handlers/groups_local.py
diff options
context:
space:
mode:
authorLuke Barnard <lukebarnard1@users.noreply.github.com>2017-10-16 16:33:53 +0200
committerGitHub <noreply@github.com>2017-10-16 16:33:53 +0200
commitca96d609e4ccca2c8f2e7ed9a57d471f9ddf793f (patch)
tree2e68a11602d4f5d40e7115d7de28ea11f8e1964a /synapse/handlers/groups_local.py
parentMerge pull request #2542 from matrix-org/dbkr/room_notif_no_glob (diff)
parentLog a warning when no profile for invited member (diff)
downloadsynapse-ca96d609e4ccca2c8f2e7ed9a57d471f9ddf793f.tar.xz
Merge pull request #2543 from matrix-org/luke/fix-on-group-invite-no-profile
Log a warning when no profile for invited member
Diffstat (limited to 'synapse/handlers/groups_local.py')
-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})