From 9d30a7004e39270fbf6f04917fe8d41b113be1d2 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 11 Oct 2012 15:17:08 +0200 Subject: [PATCH] Only warn about missing images. --- dosagelib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosagelib/util.py b/dosagelib/util.py index f95fd06c6..354c10d44 100644 --- a/dosagelib/util.py +++ b/dosagelib/util.py @@ -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)