Browse files

django_website: handle feeds without GUIDs better.

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@4839 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 85e8ae7 commit 6d905317b390aa1145c65d27bee25d3b5f968d05 jacob committed Mar 28, 2007
Showing with 3 additions and 0 deletions.
  1. +3 −0 django_website/apps/aggregator/bin/update_feeds.py
View
3 django_website/apps/aggregator/bin/update_feeds.py
@@ -18,6 +18,9 @@ def update_feeds():
guid = entry.get("id", entry.link).encode(parsed_feed.encoding, "xmlcharrefreplace")
link = entry.link.encode(parsed_feed.encoding, "xmlcharrefreplace")
+ if not guid:
+ guid = link
+
if hasattr(entry, "summary"):
content = entry.summary
elif hasattr(entry, "content"):

0 comments on commit 6d90531

Please sign in to comment.