Only warn about missing images.
This commit is contained in:
parent
9346ca997d
commit
9d30a7004e
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ def fetchUrls(url, imageSearch, prevSearch=None):
|
||||||
out.write('matched image URL %r' % imageUrl, 2)
|
out.write('matched image URL %r' % imageUrl, 2)
|
||||||
imageUrls.add(urlparse.urljoin(baseUrl, imageUrl))
|
imageUrls.add(urlparse.urljoin(baseUrl, imageUrl))
|
||||||
if not imageUrls:
|
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:
|
if prevSearch is not None:
|
||||||
# match previous URL
|
# match previous URL
|
||||||
match = prevSearch.search(data)
|
match = prevSearch.search(data)
|
||||||
|
|
Loading…
Reference in a new issue