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
1 changed files with 1 additions and 1 deletions

View File

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