Capture keyerror for webserver auth

This commit is contained in:
angelblue05 2016-10-20 02:21:00 -05:00
parent d01fb0453c
commit a614ff96cd

View file

@ -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):