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

Python type error with feeds that have bozo errors - bug fix included!!! #127

Open
DidntAgreeToTermsOfService opened this issue Jan 5, 2023 · 0 comments

Comments

@DidntAgreeToTermsOfService

test case 'greg check -u https://feeds.podcastmirror.com/national-security-law'

The result is "TypeError: sequence item 1: expected str instance, Feed found". The error is in line 187 of commands.py where code is:
"msg = ''.join(["I cannot sync ", feed, " just now: ", feed.wentwrong])"
and code should be:
"msg = ''.join(["I cannot sync ", feed.name, " just now: ", feed.wentwrong])"

This code path is only run when there is an error with the XML so seeing this error is rare. The test case has the error
"document declared as us-ascii, but parsed as utf-8" which is already listed as an issue

Please make this change in the code. I have been using this change for the last week with no issues and I have 48 feeds.

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

No branches or pull requests

1 participant