fix so that we can deal with imdb movies without poster

This commit is contained in:
bartholin 2024-10-13 16:26:41 +02:00
parent 71c05404af
commit 5f0deef482

View File

@ -41,6 +41,10 @@ def imdbid(imdbid):
img = get(poster)
if img.status_code == 200:
movie["poster"] = posters.save(poster, img.content)
else:
movie["poster"] = None
else:
movie["poster"] = None
return movie
else:
return None