Fix Issue #120 (name 'basestring' is not defined)

This commit is contained in:
Ahmed Aboul-Ela 2017-11-30 19:15:38 +04:00
parent febe52bf66
commit 832d544fa6
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ class GoogleEnum(enumratorBaseThreaded):
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