Fix KeyError if Kodi webserver disabled
This commit is contained in:
parent
27608114f5
commit
f0ba60c781
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class Artwork():
|
||||||
result = json.loads(result)
|
result = json.loads(result)
|
||||||
try:
|
try:
|
||||||
xbmc_webserver_enabled = result['result']['value']
|
xbmc_webserver_enabled = result['result']['value']
|
||||||
except TypeError:
|
except KeyError, TypeError:
|
||||||
xbmc_webserver_enabled = False
|
xbmc_webserver_enabled = False
|
||||||
|
|
||||||
if not xbmc_webserver_enabled:
|
if not xbmc_webserver_enabled:
|
||||||
|
|
Loading…
Reference in a new issue