mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-25 22:24:33 +00:00
add error details when image pipeline fails
This commit is contained in:
parent
9c9a18b3a3
commit
5f899aa4ec
@ -198,7 +198,7 @@ class ImagesPipeline(MediaPipeline):
|
|||||||
key = self.image_key(request.url)
|
key = self.image_key(request.url)
|
||||||
checksum = self.image_downloaded(response, request, info)
|
checksum = self.image_downloaded(response, request, info)
|
||||||
except ImageException, ex:
|
except ImageException, ex:
|
||||||
log.err('image_downloaded hook failed',
|
log.err('image_downloaded hook failed: %s' % ex,
|
||||||
level=log.WARNING, spider=info.spider)
|
level=log.WARNING, spider=info.spider)
|
||||||
raise
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user