Permalink
Browse files

Fixing bug around missing feed links being checked for broken pages.

  • Loading branch information...
1 parent e73ed62 commit d4322148e2d196be441265f029d63e1f0525096c @samuelclay samuelclay committed May 8, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 apps/rss_feeds/models.py
View
@@ -117,10 +117,11 @@ def canonical(self, full=False, include_favicon=True):
feed['exception_type'] = None
feed['exception_code'] = self.exception_code
- for broken_page in BROKEN_PAGE_URLS:
- if broken_page in self.feed_link:
- feed['disabled_page'] = True
- break
+ if self.feed_link:
+ for broken_page in BROKEN_PAGE_URLS:
+ if broken_page in self.feed_link:
+ feed['disabled_page'] = True
+ break
if full:
feed['feed_tags'] = json.decode(self.data.popular_tags) if self.data.popular_tags else []

0 comments on commit d432214

Please sign in to comment.