Skip to content

Commit

Permalink
Fix Issue aboul3la#120 (name 'basestring' is not defined)
Browse files Browse the repository at this point in the history
  • Loading branch information
aboul3la committed Nov 30, 2017
1 parent febe52b commit 832d544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sublist3r.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def extract_domains(self, resp):
return links_list

def check_response_errors(self, resp):
if isinstance(resp, basestring) and 'Our systems have detected unusual traffic' in resp:
if (type(resp) is str or type(resp) is unicode) and 'Our systems have detected unusual traffic' in resp:
self.print_(R + "[!] Error: Google probably now is blocking our requests" + W)
self.print_(R + "[~] Finished now the Google Enumeration ..." + W)
return False
Expand Down

0 comments on commit 832d544

Please sign in to comment.