Fix logging and exception

This commit is contained in:
angelblue05 2016-08-21 21:57:43 -05:00
parent 8b9b0821c0
commit 965340db01

View file

@ -44,17 +44,16 @@ class ImageCacheThread(threading.Thread):
def run(self): 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: try:
requests.head( requests.head(
url=( url=("http://%s:%s/image/image://%s"
"http://%s:%s/image/image://%s"
% (self.xbmc_host, self.xbmc_port, self.url_to_process)), % (self.xbmc_host, self.xbmc_port, self.url_to_process)),
auth=(self.xbmc_username, self.xbmc_password), auth=(self.xbmc_username, self.xbmc_password),
timeout=(35.1, 35.1)) timeout=(35.1, 35.1))
# We don't need the result # We don't need the result
except: except Exception:
pass pass
log.debug("Image Caching Thread Exited") log.debug("Image Caching Thread Exited")