mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-24 10:35:46 +03:00
Log a warning when no profile for invited member
And return empty profile
This commit is contained in:
parent
db3d84f46c
commit
6079d0027a
1 changed files with 5 additions and 2 deletions
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in a new issue