mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix exceptions when fetching events from a down host. (#7622)
We already caught some exceptions, but not all.
This commit is contained in:
parent
38d4ebbac7
commit
11dc2b4698
1
changelog.d/7622.bugfix
Normal file
1
changelog.d/7622.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix exceptions when fetching events from a remote host fails.
|
@ -501,7 +501,7 @@ class FederationHandler(BaseHandler):
|
|||||||
min_depth=min_depth,
|
min_depth=min_depth,
|
||||||
timeout=60000,
|
timeout=60000,
|
||||||
)
|
)
|
||||||
except RequestSendFailed as e:
|
except (RequestSendFailed, HttpResponseException, NotRetryingDestination) as e:
|
||||||
# We failed to get the missing events, but since we need to handle
|
# We failed to get the missing events, but since we need to handle
|
||||||
# the case of `get_missing_events` not returning the necessary
|
# the case of `get_missing_events` not returning the necessary
|
||||||
# events anyway, it is safe to simply log the error and continue.
|
# events anyway, it is safe to simply log the error and continue.
|
||||||
|
Loading…
Reference in New Issue
Block a user