Fix KeyError

This commit is contained in:
tomkat83 2017-02-26 18:25:41 +01:00
parent 9c22274842
commit 7276a195bf

View file

@ -99,7 +99,7 @@ def setKodiWebServerDetails():
result = loads(result) result = loads(result)
try: try:
xbmc_username = result['result']['value'] xbmc_username = result['result']['value']
except TypeError: except (TypeError, KeyError):
pass pass
web_pass = { web_pass = {
"jsonrpc": "2.0", "jsonrpc": "2.0",