mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03: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
2 changed files with 2 additions and 1 deletions
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,
|
||||
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
|
||||
# the case of `get_missing_events` not returning the necessary
|
||||
# events anyway, it is safe to simply log the error and continue.
|
||||
|
|
Loading…
Reference in a new issue