diff --git a/server/filter.py b/server/filter.py index b7c2d091..6cd37ca1 100644 --- a/server/filter.py +++ b/server/filter.py @@ -623,9 +623,9 @@ class DNSUtils: """ try: return socket.gethostbyname_ex(dns)[2] - except socket.gaierror: - logSys.warn("Unable to find a corresponding IP address for %s" - % dns) + except socket.error, e: + logSys.warn("Unable to find a corresponding IP address for %s: %s" + % (dns, e)) return list() dnsToIp = staticmethod(dnsToIp)