summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-01-30 10:14:11 +0000
committerRichard van der Hoff <richard@matrix.org>2019-01-30 10:58:52 +0000
commit09a1a6b55e0d31c3c91370c3605ec9e420ec8d0b (patch)
tree0a4bf272dce9b462c0ef79124900823b701e4079
parentAlso jitter the invalid cache period (diff)
downloadsynapse-09a1a6b55e0d31c3c91370c3605ec9e420ec8d0b.tar.xz
fix exception text
-rw-r--r--synapse/http/federation/matrix_federation_agent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/federation/matrix_federation_agent.py b/synapse/http/federation/matrix_federation_agent.py
index e4226b5c31..fd298d83f4 100644
--- a/synapse/http/federation/matrix_federation_agent.py
+++ b/synapse/http/federation/matrix_federation_agent.py
@@ -298,7 +298,7 @@ class MatrixFederationAgent(object):
             )
             body = yield make_deferred_yieldable(readBody(response))
             if response.code != 200:
-                raise Exception("Non-200 response %s", response.code)
+                raise Exception("Non-200 response %s" % (response.code, ))
         except Exception as e:
             logger.info("Error fetching %s: %s", uri_str, e)