From a2a53cddf6aa936766e2ed4228aad82081298cb0 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 11 Sep 2016 18:31:25 +0200 Subject: [PATCH] Fix AttributeError --- resources/lib/image_cache_thread.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/resources/lib/image_cache_thread.py b/resources/lib/image_cache_thread.py index 594b6f52..b01377a4 100644 --- a/resources/lib/image_cache_thread.py +++ b/resources/lib/image_cache_thread.py @@ -49,11 +49,10 @@ class ImageCacheThread(threading.Thread): def run(self): try: response = requests.head( - url=( - "http://%s:%s/image/image://%s" - % (self.xbmc_host, self.xbmc_port, self.urlToProcess)), - auth=(self.xbmc_username, self.xbmc_password), - timeout=(5, 5)) + 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=(5, 5)) # We don't need the result except Exception: pass