diff --git a/api/main.py b/api/main.py index 6f6d0621..0b565924 100644 --- a/api/main.py +++ b/api/main.py @@ -795,7 +795,7 @@ async def get_poster( mediafusion_data.is_poster_working = False await mediafusion_data.save() return raise_poster_error(mediafusion_id, f"Poster generation failed: {e}") - except ConnectionResetError: + except (ConnectionResetError, ValueError): mediafusion_data.is_poster_working = False await mediafusion_data.save() return raise_poster_error(mediafusion_id, "Poster generation failed}")