mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:26:02 -04:00
lint
This commit is contained in:
parent
cd36a1283b
commit
bb52a2e653
2 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue