mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 18:58:52 -04:00
Throw exception when not retrying when downloading media
This commit is contained in:
parent
a837765e8c
commit
48d2949416
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue