File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -342,10 +342,15 @@ def action_netcraft(domain, myResolver):
342
342
343
343
if sub_results :
344
344
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 )
349
354
else :
350
355
print '\t No Results Found'
351
356
You can’t perform that action at this time.
0 commit comments