Browse Source

Fix crash when TMDB API doesn't provide a release date

master
djib 2 years ago
parent
commit
4900c4649a
  1. 2
      FreeboxMoviePlanner.py

2
FreeboxMoviePlanner.py

@ -229,7 +229,7 @@ class FreeboxMoviePlanner:
movie.year = datetime.datetime.strptime(
tmdb_details['release_date'], '%Y-%m-%d'
).year
except ValueError:
except (ValueError, KeyError):
logging.warning(
"No release date for '{!r}'".format(movie)
)

Loading…
Cancel
Save