summary refs log tree commit diff
path: root/synapse/media/media_repository.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@matrix.org>2023-08-30 15:18:34 +0100
committerGitHub <noreply@github.com>2023-08-30 15:18:34 +0100
commit3de82bb2af28f56696a79bf41ccffc81385b6e2c (patch)
tree13f12b42ca11ef4ba7ad8c8756bc05f50ed38263 /synapse/media/media_repository.py
parentFix rare bug that broke looping calls (#16210) (diff)
downloadsynapse-3de82bb2af28f56696a79bf41ccffc81385b6e2c.tar.xz
Gracefully handle failing to thumbnail images (#16211)
Diffstat (limited to 'synapse/media/media_repository.py')
-rw-r--r--synapse/media/media_repository.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/media/media_repository.py b/synapse/media/media_repository.py
index 4b750c700b..1b7b014f9a 100644
--- a/synapse/media/media_repository.py
+++ b/synapse/media/media_repository.py
@@ -214,7 +214,10 @@ class MediaRepository:
             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)
 
         return MXCUri(self.server_name, media_id)