From dd801356db08ac9d9e4da104c7f1881245e2439f Mon Sep 17 00:00:00 2001 From: mhdzumair Date: Mon, 30 Dec 2024 17:40:16 +0530 Subject: [PATCH] store poster as not working when its return non-image content --- api/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")