From bb72663f1025c1b0f93bf84aeaa37fd6e687c7d2 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 10 Dec 2012 18:13:40 -0500 Subject: [PATCH] feed: fix the `type` key returned by Feed._get_entry_content The previous version used the Python object `type` where it should have used the string 'type'. I hadn't caught the bug before because none of my example feeds fell through that far. Signed-off-by: W. Trevor King --- rss2email/feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rss2email/feed.py b/rss2email/feed.py index 60f00e4..2ec3e7d 100644 --- a/rss2email/feed.py +++ b/rss2email/feed.py @@ -630,7 +630,7 @@ class Feed (object): return content if contents: return contents[0] - return {type: 'text/plain', 'value': ''} + return {'type': 'text/plain', 'value': ''} def _process_entry_content(self, entry, content, link, subject): "Convert entry content to the requested format." -- 2.26.2