Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 6d905317b390aa1145c65d27bee25d3b5f968d05 1 parent 85e8ae7
jacob authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django_website/apps/aggregator/bin/update_feeds.py
3  django_website/apps/aggregator/bin/update_feeds.py
View
@@ -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"):
Please sign in to comment.
Something went wrong with that request. Please try again.