]> git.sommitrealweird.co.uk Git - rss2maildir.git/commitdiff
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 bbd9b1bb375f97a476d53ac9e9b92f1929cc326e..b77c6d7d11ef14c2878fcdcb379829f4f9f82f1e 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()