]> git.sommitrealweird.co.uk Git - rss2maildir.git/blobdiff - rss2maildir.py
Fix for items that actually have no content.
[rss2maildir.git] / 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()