Fix KeyError if Kodi webserver disabled

This commit is contained in:
tomkat83 2016-04-11 09:51:05 +02:00
parent 27608114f5
commit f0ba60c781

View file

@ -74,7 +74,7 @@ class Artwork():
result = json.loads(result)
try:
xbmc_webserver_enabled = result['result']['value']
except TypeError:
except KeyError, TypeError:
xbmc_webserver_enabled = False
if not xbmc_webserver_enabled: