mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Avoid bare exceptions in dns_check
This commit is contained in:
parent
29f376676d
commit
c494839c65
1 changed files with 1 additions and 1 deletions
|
@ -749,7 +749,7 @@ def dns_check(addr, port, safe=False, ipv6=None):
|
|||
|
||||
addr = candidate_addr
|
||||
break
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
if not addr:
|
||||
error = True
|
||||
|
|
Loading…
Add table
Reference in a new issue