mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-28 06:39:21 -05:00
Merge pull request #2277 from matrix-org/erikj/media
Throw exception when not retrying when downloading media
This commit is contained in:
commit
a09e09ce76
@ -184,6 +184,7 @@ class MediaRepository(object):
|
|||||||
raise
|
raise
|
||||||
except NotRetryingDestination:
|
except NotRetryingDestination:
|
||||||
logger.warn("Not retrying destination %r", server_name)
|
logger.warn("Not retrying destination %r", server_name)
|
||||||
|
raise SynapseError(502, "Failed to fetch remote media")
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception("Failed to fetch remote media %s/%s",
|
logger.exception("Failed to fetch remote media %s/%s",
|
||||||
server_name, media_id)
|
server_name, media_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user