Fixed dig crashing on email
This commit is contained in:
parent
fd125083a0
commit
3a1c07b431
5
HTTPy.py
5
HTTPy.py
@ -120,7 +120,10 @@ def whois(inDomain):
|
||||
parseWhois(test)
|
||||
|
||||
def dig(inDomain, record):
|
||||
dig = subprocess.check_output(["dig", record, "+short", inDomain])
|
||||
try:
|
||||
dig = subprocess.check_output(["dig", record, "+short", inDomain])
|
||||
except Exception as e:
|
||||
print str(e)
|
||||
print "========================================================"
|
||||
test = dig.split("\n")
|
||||
iterate(test, record)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user