diff --git a/apps/rss_feeds/text_importer.py b/apps/rss_feeds/text_importer.py index 23828adc2..f2eae53a4 100644 --- a/apps/rss_feeds/text_importer.py +++ b/apps/rss_feeds/text_importer.py @@ -37,7 +37,7 @@ class TextImporter: } def fetch(self, skip_save=False, return_document=False): - if any(broken_url in self.story_url for broken_url in BROKEN_URLS): + if self.story_url and any(broken_url in self.story_url for broken_url in BROKEN_URLS): logging.user(self.request, "~SN~FRFailed~FY to fetch ~FGoriginal text~FY: banned") return