Skip to content

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

Open
squareborg wants to merge 3 commits into
polera:masterfrom
squareborg:master
Open

TypeError: sequence item 0: expected str instance, bytes found#13
squareborg wants to merge 3 commits into
polera:masterfrom
squareborg:master

Conversation

@squareborg

@squareborg squareborg commented Aug 26, 2016

Copy link
Copy Markdown

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