From c16a4e4a4b1321e4d840f61194d6bfeaca6c30a7 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Thu, 25 Mar 2021 18:52:32 -0400 Subject: [PATCH] Skip images with no src --- apps/rss_feeds/text_importer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/rss_feeds/text_importer.py b/apps/rss_feeds/text_importer.py index 1e2479644..00624f651 100644 --- a/apps/rss_feeds/text_importer.py +++ b/apps/rss_feeds/text_importer.py @@ -187,6 +187,7 @@ class TextImporter: for img in content_imgs: # Since NewsBlur proxies all http images over https, the url can change, so acknowledge urls # that are https on the original text but http on the feed + if not img.get('src'): continue if img.get('src') in image_urls or img.get('src').replace('https:', 'http:') in image_urls: image_urls.remove(img.get('src'))