mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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:
|
try:
|
||||||
country = self.item['ProductionLocations'][0]
|
country = self.item['ProductionLocations'][0]
|
||||||
except IndexError:
|
except (IndexError, KeyError):
|
||||||
country = None
|
country = None
|
||||||
|
|
||||||
return country
|
return country
|
||||||
|
|
Loading…
Reference in a new issue