From: Neal H. Walfield Date: Thu, 20 Oct 2011 19:43:49 +0000 (+0200) Subject: If the image tag does not contain a src parameter, ignore it. X-Git-Url: https://vcs.maemo.org/git/?p=feedingit;a=commitdiff_plain;h=4aca38b8aa35198394d44b54bdccc4dfb108c2f4 If the image tag does not contain a src parameter, ignore it. --- diff --git a/src/rss_sqlite.py b/src/rss_sqlite.py index 50bb681..a1f5d2d 100644 --- a/src/rss_sqlite.py +++ b/src/rss_sqlite.py @@ -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)