If the image tag does not contain a src parameter, ignore it.
[feedingit] / src / rss_sqlite.py
index 50bb681..a1f5d2d 100644 (file)
@@ -522,6 +522,9 @@ class Feed(BaseObject):
                        self.serial_execution_lock.release ()
                        have_serial_execution_lock = False
                        for img in images:
+                           if not 'src' in img:
+                               continue
+
                            filename = self.addImage(
                                configdir, self.key, baseurl, img['src'],
                                opener=opener)