mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-21 16:39:32 +00:00
Swallow async timeout in check_fish
This commit is contained in:
@@ -538,7 +538,7 @@ async def check_fish(urldata, port=443, verifycallback=None):
|
||||
try:
|
||||
wc = webclient.WebConnection(_get_svrip(data), port, verifycallback=verifycallback, timeout=3)
|
||||
peerinfo = await wc.grab_json_response(url, headers={'Accept': 'application/json', 'Host': 'credible-bmc'})
|
||||
except socket.error:
|
||||
except (socket.error, asyncio.exceptions.TimeoutError):
|
||||
return None
|
||||
if url == '/DeviceDescription.json':
|
||||
if not peerinfo:
|
||||
|
||||
Reference in New Issue
Block a user