Avoid bare exceptions in dns_check

This commit is contained in:
Ivan Babrou 2017-02-09 13:26:26 -08:00
parent 29f376676d
commit c494839c65
No known key found for this signature in database
GPG key ID: DBF6C142408CB4F0

View file

@ -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