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

AttributeError: 'NoneType' object has no attribute 'replace' on a specific feed #124

Open
pbrown280 opened this issue May 11, 2021 · 1 comment

Comments

@pbrown280
Copy link

Feed URL: http://feeds.megaphone.fm/WWO2453800973

Throws this exception since upgrade to v3.13:

2021-05-11 15:47:10,754 [INFO] refreshing feed savage (http://feeds.megaphone.fm/WWO2453800973 -> [email protected])
2021-05-11 15:47:10,754 [INFO] fetch savage (http://feeds.megaphone.fm/WWO2453800973 -> [email protected])
2021-05-11 15:47:11,366 [INFO] process savage (http://feeds.megaphone.fm/WWO2453800973 -> [email protected])
Traceback (most recent call last):
File "/usr/local/bin/r2e", line 4, in
import('pkg_resources').run_script('rss2email==3.13', 'r2e')
File "/usr/lib/python3.9/site-packages/pkg_resources/init.py", line 651, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3.9/site-packages/pkg_resources/init.py", line 1455, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python3.9/site-packages/rss2email-3.13-py3.9.egg/EGG-INFO/scripts/r2e", line 5, in
File "/usr/local/lib/python3.9/site-packages/rss2email-3.13-py3.9.egg/rss2email/main.py", line 199, in run
File "/usr/local/lib/python3.9/site-packages/rss2email-3.13-py3.9.egg/rss2email/command.py", line 91, in run
File "/usr/local/lib/python3.9/site-packages/rss2email-3.13-py3.9.egg/rss2email/feed.py", line 933, in run
File "/usr/local/lib/python3.9/site-packages/rss2email-3.13-py3.9.egg/rss2email/feed.py", line 394, in _process
File "/usr/local/lib/python3.9/site-packages/rss2email-3.13-py3.9.egg/rss2email/feed.py", line 544, in _process_entry
File "/usr/local/lib/python3.9/site-packages/rss2email-3.13-py3.9.egg/rss2email/feed.py", line 821, in _process_entry_content
File "/usr/lib64/python3.9/xml/sax/saxutils.py", line 27, in escape
data = data.replace("&", "&")
AttributeError: 'NoneType' object has no attribute 'replace'

@pbrown280
Copy link
Author

Verified that this feed works on rss2email v3.11 on Fedora 31.

Throws this exception on rss2email v3.13 on Fedora 34.

(Needed to upgrade to v3.13 to get rss2email to work on Fedora 34.)

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