Syntax checker is bork

This commit is contained in:
Andrew Morgan 2019-03-13 19:08:08 +00:00
parent c2d848b80d
commit c991e7aec7
1 changed files with 5 additions and 6 deletions

View File

@ -190,12 +190,11 @@ class MatrixFederationHttpClient(object):
@defer.inlineCallbacks
def _send_request_with_optional_trailing_slash(
self,
request,
try_trailing_slash_on_400=False,
backoff_on_404=False,
**kwargs,
):
self,
request,
try_trailing_slash_on_400=False,
backoff_on_404=False,
**kwargs):
"""Wrapper for _send_request which can optionally retry the request
upon receiving a combination of a 400 HTTP response code and a
'M_UNRECOGNIZED' errcode. This is a workaround for Synapse <=v0.99.2