Fix for items that actually have no content.
authorBrett Parker <brettp@erwin.sommitrealweird.co.uk>
Sat, 7 Jun 2008 11:59:47 +0000 (12:59 +0100)
committerBrett Parker <brettp@erwin.sommitrealweird.co.uk>
Sat, 7 Jun 2008 11:59:47 +0000 (12:59 +0100)
rss2maildir.py

index bbd9b1b..b77c6d7 100755 (executable)
@@ -683,7 +683,10 @@ def parse_and_deliver(maildir, url, statedir):
         if item.has_key("content"):
             content = item["content"][0]["value"]
         else:
-            content = item["description"]
+            if item.has_key("description"):
+                content = item["description"]
+            else:
+                content = u''
 
         md5sum = md5.md5(content.encode("utf-8")).hexdigest()