From 965340db01ae7050234f5132a19cee9d3934ffad Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 21 Aug 2016 21:57:43 -0500 Subject: [PATCH] Fix logging and exception --- resources/lib/image_cache_thread.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/resources/lib/image_cache_thread.py b/resources/lib/image_cache_thread.py index 9f17f1f9..c789c66f 100644 --- a/resources/lib/image_cache_thread.py +++ b/resources/lib/image_cache_thread.py @@ -44,17 +44,16 @@ class ImageCacheThread(threading.Thread): def run(self): - log.debug("Image Caching Thread Processing: %s" % self.url_to_process) + log.debug("Image Caching Thread Processing: %s", self.url_to_process) try: requests.head( - url=( - "http://%s:%s/image/image://%s" - % (self.xbmc_host, self.xbmc_port, self.url_to_process)), - auth=(self.xbmc_username, self.xbmc_password), - timeout=(35.1, 35.1)) + url=("http://%s:%s/image/image://%s" + % (self.xbmc_host, self.xbmc_port, self.url_to_process)), + auth=(self.xbmc_username, self.xbmc_password), + timeout=(35.1, 35.1)) # We don't need the result - except: + except Exception: pass log.debug("Image Caching Thread Exited")