mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
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):
|
||||
|
||||
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")
|
||||
|
|
Loading…
Reference in a new issue