Fix KeyError
This commit is contained in:
parent
9c22274842
commit
7276a195bf
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue