summary refs log tree commit diff
path: root/synapse/handlers/profile.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-01-07 10:35:04 +0000
committerErik Johnston <erik@matrix.org>2021-01-07 10:35:04 +0000
commit91fd180be1198416edb08505dab33fb7eb02dae9 (patch)
tree1b598ca4f6d3347935ac46ce27fd4913f2764646 /synapse/handlers/profile.py
parentMerge branch 'release-v1.25.0' of github.com:matrix-org/synapse into matrix-o... (diff)
parentEmpty iterables should count towards cache usage. (#9028) (diff)
downloadsynapse-91fd180be1198416edb08505dab33fb7eb02dae9.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r--synapse/handlers/profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py

index dee0ef45e7..36f9ee4b71 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py
@@ -156,7 +156,7 @@ class ProfileHandler(BaseHandler): except HttpResponseException as e: raise e.to_synapse_error() - return result["displayname"] + return result.get("displayname") async def set_displayname( self, @@ -246,7 +246,7 @@ class ProfileHandler(BaseHandler): except HttpResponseException as e: raise e.to_synapse_error() - return result["avatar_url"] + return result.get("avatar_url") async def set_avatar_url( self,