mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Narrow down connection exception to socket.error
This commit is contained in:
parent
e8a2cc0488
commit
0df6b922e7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue