mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 04:46:04 -04:00
Correctly handle RequestSendFailed exceptions
This mainly reduces the number of exceptions we log.
This commit is contained in:
parent
c6e75c9f2d
commit
7fc1196a36
4 changed files with 19 additions and 8 deletions
|
@ -20,7 +20,7 @@ from twisted.internet import defer
|
|||
|
||||
from synapse.api import errors
|
||||
from synapse.api.constants import EventTypes
|
||||
from synapse.api.errors import FederationDeniedError
|
||||
from synapse.api.errors import FederationDeniedError, RequestSendFailed
|
||||
from synapse.types import RoomStreamToken, get_domain_from_id
|
||||
from synapse.util import stringutils
|
||||
from synapse.util.async_helpers import Linearizer
|
||||
|
@ -504,7 +504,7 @@ class DeviceListEduUpdater(object):
|
|||
origin = get_domain_from_id(user_id)
|
||||
try:
|
||||
result = yield self.federation.query_user_devices(origin, user_id)
|
||||
except NotRetryingDestination:
|
||||
except (NotRetryingDestination, RequestSendFailed):
|
||||
# TODO: Remember that we are now out of sync and try again
|
||||
# later
|
||||
logger.warn(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue