Fixed dig crashing on email

This commit is contained in:
benjamyn committed 2017-07-27 15:44:35 +10:00
1 parent fd125083a0
commit 3a1c07b431
1 file changed
+4 -1
+4 -1
View File
@@ -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)