Fix AttributeError
This commit is contained in:
parent
c9dd44f498
commit
a2a53cddf6
1 changed files with 4 additions and 5 deletions
|
@ -49,11 +49,10 @@ class ImageCacheThread(threading.Thread):
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
response = requests.head(
|
response = 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.urlToProcess)),
|
auth=(self.xbmc_username, self.xbmc_password),
|
||||||
auth=(self.xbmc_username, self.xbmc_password),
|
timeout=(5, 5))
|
||||||
timeout=(5, 5))
|
|
||||||
# We don't need the result
|
# We don't need the result
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue