From a835c1703745ba029f3a972d9b7a8feea518fd2f Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 8 Nov 2023 09:16:22 -0500 Subject: [PATCH] Do not fail upload if thumbnailing fails. --- synapse/media/media_repository.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synapse/media/media_repository.py b/synapse/media/media_repository.py index e4eb8d3ae70b..2d839f6778c1 100644 --- a/synapse/media/media_repository.py +++ b/synapse/media/media_repository.py @@ -296,7 +296,10 @@ async def update_content( user_id=auth_user, ) - await self._generate_thumbnails(None, media_id, media_id, media_type) + try: + await self._generate_thumbnails(None, media_id, media_id, media_type) + except Exception as e: +logger.info("Failed to generate thumbnails: %s", e) @trace async def create_content(