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
|
@ -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