2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

If SSDP happens but HTTPS not ready, ignore

This commit is contained in:
Jarrod Johnson 2022-01-07 10:45:10 -05:00
parent d5a8e881ab
commit 6df73d88b3

View File

@ -375,8 +375,11 @@ def _find_service(service, target):
def check_fish(urldata):
url, data = urldata
wc = webclient.SecureHTTPConnection(_get_svrip(data), 443, verifycallback=lambda x: True)
peerinfo = wc.grab_json_response(url)
try:
wc = webclient.SecureHTTPConnection(_get_svrip(data), 443, verifycallback=lambda x: True)
peerinfo = wc.grab_json_response(url)
except socket.error:
return None
if url == '/DeviceDescription.json':
try:
peerinfo = peerinfo[0]