Catch keyerror

If advancedsettings.xml modifies the webserver, it seems to cause errors
in jsonrpc and will return invalid params. Bug in Kodi?
This commit is contained in:
angelblue05 2016-07-25 21:58:49 -05:00
parent 800d5bd4d4
commit 48f20295aa

View file

@ -126,7 +126,7 @@ class Artwork():
result = json.loads(result)
try:
self.xbmc_port = result['result']['value']
except TypeError:
except (TypeError, KeyError):
pass
web_user = {