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

TypeError: sequence item 0: expected str instance, bytes found #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

TypeError: sequence item 0: expected str instance, bytes found #13

wants to merge 3 commits into from

Conversation

squareborg
Copy link

@squareborg squareborg commented Aug 26, 2016

Hey thanks for a great tool, I however ran into a problem when running the code is below, Its from your example and the IP is currently blacklisted. The TEXT record was throwing an error, I managed to "fix" it with this pull request.

from rblwatch import RBLSearch

# Do the lookup (for smtp.gmail.com)
searcher = RBLSearch('85.115.52.190')

# Display a simply formatted report of the results
searcher.print_results()

# Use the result data for something else
result_data = searcher.listed

self.listed[self.dnslist]['TEXT'] = "\n".join(text_record[0].strings)
TypeError: sequence item 0: expected str instance, bytes found
self.listed[self.dnslist]['TEXT'] = "\n".join(text_record[0].strings)
TypeError: sequence item 0: expected str instance, bytes found
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