mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 09:35:45 +03:00
A pair of tiny cleanups in the federation request code. (#8401)
This commit is contained in:
parent
4b3a1faa08
commit
450ec48445
3 changed files with 2 additions and 3 deletions
1
changelog.d/8401.misc
Normal file
1
changelog.d/8401.misc
Normal file
|
@ -0,0 +1 @@
|
|||
A pair of tiny cleanups in the federation request code.
|
|
@ -281,7 +281,7 @@ class FederationHandler(BaseHandler):
|
|||
raise Exception(
|
||||
"Error fetching missing prev_events for %s: %s"
|
||||
% (event_id, e)
|
||||
)
|
||||
) from e
|
||||
|
||||
# Update the set of things we've seen after trying to
|
||||
# fetch the missing stuff
|
||||
|
|
|
@ -473,8 +473,6 @@ class MatrixFederationHttpClient:
|
|||
)
|
||||
|
||||
response = await request_deferred
|
||||
except TimeoutError as e:
|
||||
raise RequestSendFailed(e, can_retry=True) from e
|
||||
except DNSLookupError as e:
|
||||
raise RequestSendFailed(e, can_retry=retry_on_dns_fail) from e
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in a new issue