diff --git a/kinolist/imdb.py b/kinolist/imdb.py index e392bec..8984b5c 100644 --- a/kinolist/imdb.py +++ b/kinolist/imdb.py @@ -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