mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Catch if missing country value
Unusual, but apparently can happen
This commit is contained in:
parent
29fcc2569e
commit
2be47a1e4f
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ class API(object):
|
|||
|
||||
try:
|
||||
country = self.item['ProductionLocations'][0]
|
||||
except IndexError:
|
||||
except (IndexError, KeyError):
|
||||
country = None
|
||||
|
||||
return country
|
||||
|
|
Loading…
Reference in a new issue