Skip to content

Commit 6c18809

Browse files
committed
BugFix
1 parent f2a469d commit 6c18809

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Bluto/modules/search.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,15 @@ def action_netcraft(domain, myResolver):
342342

343343
if sub_results:
344344
for item in sub_results:
345-
netcheck = myResolver.query(item + '.' + domain)
346-
for data in netcheck:
347-
netcraft_list.append(item + '.' + domain + ' ' + str(data))
348-
print colored(item + '.' + domain, 'red')
345+
try:
346+
netcheck = myResolver.query(item + '.' + domain)
347+
for data in netcheck:
348+
netcraft_list.append(item + '.' + domain + ' ' + str(data))
349+
print colored(item + '.' + domain, 'red')
350+
except dns.resolver.NXDOMAIN:
351+
pass
352+
except Exception:
353+
error('An Unhandled Exception Has Occured, Please Check The Log For Details\n' + ERROR_LOG_FILE, exc_info=True)
349354
else:
350355
print '\tNo Results Found'
351356

0 commit comments

Comments
 (0)