If the image tag does not contain a src parameter, ignore it.
authorNeal H. Walfield <neal@walfield.org>
Thu, 20 Oct 2011 19:43:49 +0000 (21:43 +0200)
committerNeal H. Walfield <neal@walfield.org>
Thu, 20 Oct 2011 19:43:49 +0000 (21:43 +0200)
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)