summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-03-20 14:08:57 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-03-20 14:08:57 +0000
commitbb52a2e65308f10285d5d6290786e889d203f3db (patch)
tree966ed35c01e3712bb519856b7b800c91d173ebf9 /synapse
parentNew test, fix issues (diff)
downloadsynapse-bb52a2e65308f10285d5d6290786e889d203f3db.tar.xz
lint
Diffstat (limited to 'synapse')
-rw-r--r--synapse/http/matrixfederationclient.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index dd358536f1..2c1bcf66fd 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -219,7 +219,9 @@ class MatrixFederationHttpClient(object):
             Deferred[Dict]: Parsed JSON response body.
         """
         try:
-            response = yield self._send_request(request, backoff_on_404=backoff_on_404, **send_request_args)
+            response = yield self._send_request(
+                request, backoff_on_404=backoff_on_404, **send_request_args,
+            )
         except HttpResponseException as e:
             # Received an HTTP error > 300. Check if it meets the requirements
             # to retry with a trailing slash
@@ -234,7 +236,9 @@ class MatrixFederationHttpClient(object):
             # trailing slash on Synapse <= v0.99.3.
             request.path += "/"
 
-            response = yield self._send_request(request, backoff_on_404=backoff_on_404, **send_request_args)
+            response = yield self._send_request(
+                request, backoff_on_404=backoff_on_404, **send_request_args,
+            )
 
         defer.returnValue(response)