diff options
author | Luke Barnard <lukeb@openmarket.com> | 2017-10-16 14:20:45 +0100 |
---|---|---|
committer | Luke Barnard <lukeb@openmarket.com> | 2017-10-16 14:20:45 +0100 |
commit | 6079d0027aa79a6e2e41254ceda42206e307add7 (patch) | |
tree | 37b3809b45341aca6036de2c2cc7cc6dd224e476 /synapse/handlers/groups_local.py | |
parent | Merge pull request #2538 from matrix-org/erikj/media_backup (diff) | |
download | synapse-6079d0027aa79a6e2e41254ceda42206e307add7.tar.xz |
Log a warning when no profile for invited member
And return empty profile
Diffstat (limited to 'synapse/handlers/groups_local.py')
-rw-r--r-- | synapse/handlers/groups_local.py | 7 |
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}) |