Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

add error details when image pipeline fails

Libor Nenadál5f899aa4ec7c
diff --git a/scrapy/contrib/pipeline/images.py b/scrapy/contrib/pipeline/images.py
index fa4125520..477559095 100644
--- a/scrapy/contrib/pipeline/images.py
+++ b/scrapy/contrib/pipeline/images.py
@@ -198,7 +198,7 @@ class ImagesPipeline(MediaPipeline):
key = self.image_key(request.url)
checksum = self.image_downloaded(response, request, info)
except ImageException, ex:
- log.err('image_downloaded hook failed',
+ log.err('image_downloaded hook failed: %s' % ex,
level=log.WARNING, spider=info.spider)
raise
except Exception: