Python 3 Start
This commit is contained in:
parent
9f029c8ceb
commit
141fe8d80c
67 changed files with 264 additions and 274 deletions
|
@ -44,7 +44,7 @@ def get_episode_info(episode, api_key):
|
|||
first_aired = episode.findtext("FirstAired")
|
||||
|
||||
try:
|
||||
air_date = datetime.date(*map(int, first_aired.split('-')))
|
||||
air_date = datetime.date(*list(map(int, first_aired.split('-'))))
|
||||
except (ValueError, TypeError):
|
||||
return None
|
||||
|
||||
|
|
Reference in a new issue