{"action":"opened","issue":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/1884","repository_url":"https://api.github.com/repos/scrapy/scrapy","labels_url":"https://api.github.com/repos/scrapy/scrapy/issues/1884/labels{/name}","comments_url":"https://api.github.com/repos/scrapy/scrapy/issues/1884/comments","events_url":"https://api.github.com/repos/scrapy/scrapy/issues/1884/events","html_url":"https://github.com/scrapy/scrapy/issues/1884","id":143875760,"number":1884,"title":"ImageException \"uncaught\"","user":{"login":"djunzu","id":8784122,"avatar_url":"https://avatars.githubusercontent.com/u/8784122?v=3","gravatar_id":"","url":"https://api.github.com/users/djunzu","html_url":"https://github.com/djunzu","followers_url":"https://api.github.com/users/djunzu/followers","following_url":"https://api.github.com/users/djunzu/following{/other_user}","gists_url":"https://api.github.com/users/djunzu/gists{/gist_id}","starred_url":"https://api.github.com/users/djunzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djunzu/subscriptions","organizations_url":"https://api.github.com/users/djunzu/orgs","repos_url":"https://api.github.com/users/djunzu/repos","events_url":"https://api.github.com/users/djunzu/events{/privacy}","received_events_url":"https://api.github.com/users/djunzu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-28T02:34:30Z","updated_at":"2016-03-28T02:34:30Z","closed_at":null,"body":"My log have some exceptions like this one:\r\n\r\n    2016-03-25 20:33:35 [XYZ_SpiderName] WARNING: File (error): Error processing file from <GET http://url_path/xyz_img.jpg> referred in <None>: Image too small (279x560 < 300x300)\r\n    Traceback (most recent call last):\r\n      File \"/home/me/.local/lib64/python2.7/site-packages/Scrapy-1.0.5-py2.7.egg/scrapy/pipelines/files.py\", line 268, in media_downloaded\r\n        checksum = self.file_downloaded(response, request, info)\r\n      File \"/home/me/.local/lib64/python2.7/site-packages/Scrapy-1.0.5-py2.7.egg/scrapy/pipelines/images.py\", line 60, in file_downloaded\r\n        return self.image_downloaded(response, request, info)\r\n      File \"/home/me/.local/lib64/python2.7/site-packages/Scrapy-1.0.5-py2.7.egg/scrapy/pipelines/images.py\", line 64, in image_downloaded\r\n        for path, image, buf in self.get_images(response, request, info):\r\n      File \"/home/me/.local/lib64/python2.7/site-packages/Scrapy-1.0.5-py2.7.egg/scrapy/pipelines/images.py\", line 82, in get_images\r\n        (width, height, self.MIN_WIDTH, self.MIN_HEIGHT))\r\n    ImageException: Image too small (279x560 < 300x300)\r\n\r\n1. The exception is [raised](https://github.com/scrapy/scrapy/blob/master/scrapy/pipelines/images.py#L82) because the downloaded image is too small. OK!\r\n2. The exception is [caught](https://github.com/scrapy/scrapy/blob/master/scrapy/pipelines/files.py#L337) and the event is logged. OK!\r\n3. The exception is then reraised. -> Is this right?\r\n\r\nI do not expect to see this kind of exception when running a spider. I think the expected behavior is to have the event logged, but not propagated as a uncaught exception.\r\n"}}