Skip to content

Commit

Permalink
store poster as not working when its return non-image content
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdzumair committed Dec 30, 2024
1 parent 79e767d commit dd80135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit dd80135

Please sign in to comment.