summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authordklimpel <5740567+dklimpel@users.noreply.github.com>2020-03-09 22:13:20 +0100
committerdklimpel <5740567+dklimpel@users.noreply.github.com>2020-03-09 22:13:20 +0100
commit39f6595b4ab108cb451072ae251a91117002191c (patch)
treedd4d95f77d63d10af8b7bca8090b9e4bded991d4 /synapse/handlers
parentupdates after review (diff)
downloadsynapse-39f6595b4ab108cb451072ae251a91117002191c.tar.xz
lint, fix tests
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/profile.py4
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: