Catch if missing country value

Unusual, but apparently can happen
This commit is contained in:
angelblue05 2016-10-08 04:40:50 -05:00
parent 29fcc2569e
commit 2be47a1e4f

View file

@ -358,7 +358,7 @@ class API(object):
try: try:
country = self.item['ProductionLocations'][0] country = self.item['ProductionLocations'][0]
except IndexError: except (IndexError, KeyError):
country = None country = None
return country return country