mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
utils.http.query: also except gaierror with tornado
This commit is contained in:
parent
ec09095c45
commit
1f9422e0cd
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue