Merge pull request #2543 from matrix-org/luke/fix-on-group-invite-no-profile
Log a warning when no profile for invited member
This commit is contained in:
commit
ca96d609e4
|
@ -313,8 +313,11 @@ class GroupsLocalHandler(object):
|
||||||
self.notifier.on_new_event(
|
self.notifier.on_new_event(
|
||||||
"groups_key", token, users=[user_id],
|
"groups_key", token, users=[user_id],
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
user_profile = yield self.profile_handler.get_profile(user_id)
|
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})
|
defer.returnValue({"state": "invite", "user_profile": user_profile})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue