summary refs log tree commit diff
path: root/synapse/config/ratelimiting.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-13 11:32:53 +0000
committerGitHub <noreply@github.com>2019-12-13 11:32:53 +0000
commit5cadbd9ebb6cc9e6e2e15ab3f77fcbca47d53392 (patch)
tree811fec2b55d1566cc294de5747842d615932b8d4 /synapse/config/ratelimiting.py
parentMerge branch 'master' into develop (diff)
parentNewsfile (diff)
downloadsynapse-5cadbd9ebb6cc9e6e2e15ab3f77fcbca47d53392.tar.xz
Merge pull request #6537 from matrix-org/erikj/bump_mypy_version
Bump mypy version
Diffstat (limited to 'synapse/config/ratelimiting.py')
-rw-r--r--synapse/config/ratelimiting.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/config/ratelimiting.py b/synapse/config/ratelimiting.py
index 947f653e03..4a3bfc4354 100644
--- a/synapse/config/ratelimiting.py
+++ b/synapse/config/ratelimiting.py
@@ -83,10 +83,9 @@ class RatelimitConfig(Config):
         )
 
         rc_admin_redaction = config.get("rc_admin_redaction")
+        self.rc_admin_redaction = None
         if rc_admin_redaction:
             self.rc_admin_redaction = RateLimitConfig(rc_admin_redaction)
-        else:
-            self.rc_admin_redaction = None
 
     def generate_config_section(self, **kwargs):
         return """\