Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Do not fail upload if thumbnailing fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored and sumnerevans committed Nov 9, 2023
1 parent 52e8915 commit 961bfa0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synapse/media/media_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,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(
Expand Down

0 comments on commit 961bfa0

Please sign in to comment.