0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 17:23:50 +01:00

Merge pull request #2277 from matrix-org/erikj/media

Throw exception when not retrying when downloading media
This commit is contained in:
Erik Johnston 2017-06-13 10:52:45 +01:00 committed by GitHub
commit a09e09ce76

View file

@ -184,6 +184,7 @@ class MediaRepository(object):
raise
except NotRetryingDestination:
logger.warn("Not retrying destination %r", server_name)
raise SynapseError(502, "Failed to fetch remote media")
except Exception:
logger.exception("Failed to fetch remote media %s/%s",
server_name, media_id)