Handling missig feed on page importer.

This commit is contained in:
Samuel Clay 2018-07-16 10:50:29 -04:00
parent 63125fd83f
commit 2b83ccabc1

View file

@ -170,7 +170,9 @@ class PageImporter(object):
def _fetch_story(self):
html = None
story_permalink = self.story.story_permalink
if not self.feed:
return
if any(story_permalink.startswith(s) for s in BROKEN_PAGES):
return
if any(s in story_permalink.lower() for s in BROKEN_PAGE_URLS):