utils.http.query: also except gaierror with tornado

This commit is contained in:
Justin Findlay 2016-06-07 10:29:06 -06:00
parent ec09095c45
commit 1f9422e0cd

View file

@ -500,6 +500,11 @@ def query(url,
ret['status'] = exc.code
ret['error'] = str(exc)
return ret
except socket.gaierror as exc:
if status is True:
ret['status'] = 0
ret['error'] = str(exc)
return ret
if stream is True or handle is True:
return {