mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Narrow down connection exception to socket.error
This commit is contained in:
parent
e8a2cc0488
commit
0df6b922e7
@ -754,7 +754,7 @@ def dns_check(addr, port, connect=True, safe=False, ipv6=None):
|
||||
|
||||
resolved = candidate_addr
|
||||
break
|
||||
except Exception:
|
||||
except socket.error:
|
||||
pass
|
||||
if not resolved:
|
||||
error = True
|
||||
|
Loading…
Reference in New Issue
Block a user