summary refs log tree commit diff
path: root/synapse/handlers/profile.py
diff options
context:
space:
mode:
authordklimpel <5740567+dklimpel@users.noreply.github.com>2020-03-08 15:22:43 +0100
committerdklimpel <5740567+dklimpel@users.noreply.github.com>2020-03-08 15:22:43 +0100
commitce460dc31c6de5852277310db825d23c27d4b9fd (patch)
treef2e16c874e8d370a80bd9acdf664fc2e4e89bef3 /synapse/handlers/profile.py
parentchangelog (diff)
downloadsynapse-ce460dc31c6de5852277310db825d23c27d4b9fd.tar.xz
lint
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r--synapse/handlers/profile.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py
index 445981bf3d..b049dd8e26 100644
--- a/synapse/handlers/profile.py
+++ b/synapse/handlers/profile.py
@@ -161,8 +161,7 @@ class BaseProfileHandler(BaseHandler):
             profile = yield self.store.get_profileinfo(target_user.localpart)
             if profile.display_name:
                 raise SynapseError(
-                    400,
-                    "Changing displayname is disabled on this server"
+                    400, "Changing displayname is disabled on this server"
                 )
 
         if len(new_displayname) > MAX_DISPLAYNAME_LEN:
@@ -230,8 +229,7 @@ class BaseProfileHandler(BaseHandler):
             profile = yield self.store.get_profileinfo(target_user.localpart)
             if profile.avatar_url:
                 raise SynapseError(
-                    400,
-                    "Changing avatar url is disabled on this server"
+                    400, "Changing avatar url is disabled on this server"
                 )
 
         if len(new_avatar_url) > MAX_AVATAR_URL_LEN: