try just ignoring the errors

This commit is contained in:
Rob Weber 2019-12-30 10:49:36 -06:00
parent 1eca075d75
commit 13d5dc1b79

View File

@ -17,7 +17,7 @@ class GuiSettingsManager:
def run(self): def run(self):
#get a list of all the settings we can manipulate via json #get a list of all the settings we can manipulate via json
json_response = json.loads(xbmc.executeJSONRPC('{"jsonrpc":"2.0", "id":1, "method":"Settings.GetSettings","params":{"level":"advanced"}}').decode('utf-8')) json_response = json.loads(xbmc.executeJSONRPC('{"jsonrpc":"2.0", "id":1, "method":"Settings.GetSettings","params":{"level":"advanced"}}').decode('utf-8', errors="ignore"))
settings = json_response['result']['settings'] settings = json_response['result']['settings']
currentSettings = {} currentSettings = {}