diff --git a/domain_stats.py b/domain_stats.py index 105fb7a..f9fb539 100755 --- a/domain_stats.py +++ b/domain_stats.py @@ -104,9 +104,10 @@ def do_GET(self): self.wfile.write(str("No whois record for %s" % (params['tgt'])).encode("latin-1")) return except Exception as e: + print(e) if "no match for" in str(e).lower(): domain_info={'domain_name': params['tgt'], 'time': time.time(),'status':"NOT FOUND"} - elif self.server.args.verbose: + else: self.server.safe_print ("Error querying whois server: %s" % (str(e))) return #Put it in the cache