diff options
author | dklimpel <5740567+dklimpel@users.noreply.github.com> | 2020-03-09 22:13:20 +0100 |
---|---|---|
committer | dklimpel <5740567+dklimpel@users.noreply.github.com> | 2020-03-09 22:13:20 +0100 |
commit | 39f6595b4ab108cb451072ae251a91117002191c (patch) | |
tree | dd4d95f77d63d10af8b7bca8090b9e4bded991d4 /synapse/handlers/profile.py | |
parent | updates after review (diff) | |
download | synapse-39f6595b4ab108cb451072ae251a91117002191c.tar.xz |
lint, fix tests
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r-- | synapse/handlers/profile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index eb85dba015..6aa1c0f5e0 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -161,7 +161,9 @@ class BaseProfileHandler(BaseHandler): profile = yield self.store.get_profileinfo(target_user.localpart) if profile.display_name: raise SynapseError( - 400, "Changing display name is disabled on this server", Codes.FORBIDDEN + 400, + "Changing display name is disabled on this server", + Codes.FORBIDDEN, ) if len(new_displayname) > MAX_DISPLAYNAME_LEN: |