I'm currently making an RSS reader, and every other RSS feed I've tried has worked, but my site crashes every time a CNN feed is inputted. The parsed items are put into a list and sorted by pubDate.
for source in sources:
rss = feedparser.parse(source.url)
try:
items.extend(rss["items"])
except KeyError:
continue
items = list(reversed(sorted(items, key=lambda item: item["updated_parsed"])))
Is there a problem with my code or is it CNN's feed?