Dont stop on image regex errors.

This commit is contained in:
Bastian Kleineidam 2013-03-15 07:03:54 +01:00
parent 421b036b4b
commit 6a2f55ddef

View file

@ -126,7 +126,11 @@ class _BasicScraper(object):
out.info('Skipping URL %s' % url)
self.skippedUrls.add(url)
else:
try:
yield self.getComicStrip(url, data, baseUrl)
except ValueError as msg:
# image not found
out.error(msg)
if self.firstStripUrl == url:
out.debug("Stop at first URL %s" % url)
self.hitFirstStripUrl = True