2017-05-16, 20:39
Hi @Milhouse,
On a RPi1, I sometimes get that error, resulting in the script to hang.
Is there a way to protect the code for this error ?
Thanks !
Smeulf.
On a RPi1, I sometimes get that error, resulting in the script to hang.
Code:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
File "./texturecache.py", line 1097, in run
if not self.loadImage(item) and not item.missingOK:
File "./texturecache.py", line 1177, in loadImage
(url, rowexists) = self.geturl(item)
File "./texturecache.py", line 1116, in geturl
url = self.json.getDownloadURL(item.filename)
File "./texturecache.py", line 2759, in getDownloadURL
data = self.sendJSON(REQUEST, "preparedl")
File "./texturecache.py", line 2220, in sendJSON
return self.sendWeb("POST", "/jsonrpc", id, request, {"Content-Type": "application/json"}, timeout=timeout)
File "./texturecache.py", line 2154, in sendWeb
web.request(request_type, url, sdata, headers)
File "/usr/lib/python2.7/httplib.py", line 1042, in request
File "/usr/lib/python2.7/httplib.py", line 1082, in _send_request
File "/usr/lib/python2.7/httplib.py", line 1038, in endheaders
File "/usr/lib/python2.7/httplib.py", line 882, in _send_output
File "/usr/lib/python2.7/httplib.py", line 844, in send
File "/usr/lib/python2.7/httplib.py", line 821, in connect
File "/usr/lib/python2.7/socket.py", line 575, in create_connection
error: [Errno 111] Connection refused
Is there a way to protect the code for this error ?
Thanks !
Smeulf.