Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug - AttributeError: 'NoneType' object has no attribute 'text' #22

Closed
nano6yt3 opened this issue May 6, 2020 · 2 comments
Closed

bug - AttributeError: 'NoneType' object has no attribute 'text' #22

nano6yt3 opened this issue May 6, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@nano6yt3
Copy link

nano6yt3 commented May 6, 2020

The following keeps happening after running it successfully for a while. it does not matter what domain.

python3 gitGraber.py -k wordlists/keywords.txt -q \”domainexample.com" -s

[i] Status code : 200
Traceback (most recent call last):
  File "gitGraber.py", line 351, in <module>
    responses = searchGithub(keywordsFile, args)
  File "gitGraber.py", line 307, in searchGithub
    pool.map( partial(doSearchGithub,args,tokenMap, tokenCombos), t_keywords )
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 266, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 644, in get
    raise self._value
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
    return list(map(*args))
  File "gitGraber.py", line 288, in doSearchGithub
    content = parseResults(response.text)
AttributeError: 'NoneType' object has no attribute 'text'
@rmarot rmarot added the bug Something isn't working label May 22, 2020
@rmarot
Copy link
Collaborator

rmarot commented May 22, 2020

Seems like we should add a control check on response to avoid such issue.Does it happen even after restarting ?

@rmarot
Copy link
Collaborator

rmarot commented Jun 5, 2020

We've added a quick fix to have a control check. This part will be reviewed in a future version.

@rmarot rmarot closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants