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

Fixing error TypeError: decode() argument 'encoding' must be str #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nashjb
Copy link

@nashjb nashjb commented Oct 31, 2024

Just a simple fix. Was running this on Kali WSL and noticed an error kept appearing. I think it's reasonable to add a simple default to utf-8.
Traceback (most recent call last):
File "/home/bush/EmailHarvester/EmailHarvester.py", line 279, in
all_emails += plugins[search_engine]['search'](domain, limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bush/EmailHarvester/plugins/ask.py", line 87, in search
search.process()
File "/home/bush/EmailHarvester/plugins/ask.py", line 73, in process
self.do_search()
File "/home/bush/EmailHarvester/plugins/ask.py", line 68, in do_search
self.results = r.content.decode(r.encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: decode() argument 'encoding' must be str, not None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant