From 48f20295aae917d80530830ce458f4c8cbe465b4 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 25 Jul 2016 21:58:49 -0500 Subject: [PATCH] Catch keyerror If advancedsettings.xml modifies the webserver, it seems to cause errors in jsonrpc and will return invalid params. Bug in Kodi? --- resources/lib/artwork.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 4b0124f7..a9ca780c 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -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 = {