forked from Lainports/freebsd-ports
This can apparently be triggered with malformed RSS feeds.
Traceback (most recent call last):
File "/usr/share/rss2email/rss2email.py", line 711, in run
tagline = ",".join(taglist)
TypeError: sequence item 1: expected string or Unicode, NoneType found
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734327
- Reset maintainer due to the long timeout
PR: 214934
Submitted by: jonathan@invertedearth.net
Approved by: srg@guglielmo.us (maintainer timeout, ~2 years)
13 lines
510 B
Python
13 lines
510 B
Python
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734327
|
|
|
|
--- rss2email.py.orig 2018-01-14 00:42:27 UTC
|
|
+++ rss2email.py
|
|
@@ -694,7 +694,7 @@ def run(num=None):
|
|
for tag in tags:
|
|
taglist.append(tag['term'])
|
|
if taglist:
|
|
- tagline = ",".join(taglist)
|
|
+ tagline = ",".join(filter(None, taglist))
|
|
|
|
extraheaders = {'Date': datehdr, 'User-Agent': useragenthdr, 'X-RSS-Feed': f.url, 'X-RSS-ID': id, 'X-RSS-URL': link, 'X-RSS-TAGS' : tagline}
|
|
if BONUS_HEADER != '':
|