From a614ff96cd8bb2fee5c67dfe6e5a377a9be23bf3 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 20 Oct 2016 02:21:00 -0500 Subject: [PATCH] Capture keyerror for webserver auth --- resources/lib/artwork.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 2e3bdded..2b828a2d 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -113,7 +113,7 @@ class Artwork(object): result = get_setting_value.execute(web_user) try: self.xbmc_username = result['result']['value'] - except TypeError: + except (TypeError, KeyError): pass web_pass = { @@ -123,7 +123,7 @@ class Artwork(object): result = get_setting_value.execute(web_pass) try: self.xbmc_password = result['result']['value'] - except TypeError: + except (TypeError, KeyError): pass def texture_cache_sync(self):