Only warn about missing images.

This commit is contained in:
Bastian Kleineidam 2012-10-11 15:17:08 +02:00
parent 9346ca997d
commit 9d30a7004e

View file

@ -92,7 +92,7 @@ def fetchUrls(url, imageSearch, prevSearch=None):
out.write('matched image URL %r' % imageUrl, 2)
imageUrls.add(urlparse.urljoin(baseUrl, imageUrl))
if not imageUrls:
raise ValueError("No images found at %s with pattern %s" % (url, imageSearch.pattern))
out.write("warning: no images found at %s with pattern %s" % (url, imageSearch.pattern))
if prevSearch is not None:
# match previous URL
match = prevSearch.search(data)