Fix logging and exception
This commit is contained in:
parent
8b9b0821c0
commit
965340db01
1 changed files with 6 additions and 7 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue