summary refs log tree commit diff
path: root/synapse/config/ratelimiting.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-12 15:21:12 +0000
committerErik Johnston <erik@matrix.org>2019-12-12 15:21:12 +0000
commit495005360cd37009818ad4214a5462c3dd0b15a6 (patch)
tree4028a737f4294313814469b5798ed7cc9f81813c /synapse/config/ratelimiting.py
parentNewsfile (diff)
downloadsynapse-495005360cd37009818ad4214a5462c3dd0b15a6.tar.xz
Bump version of mypy
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 """\