mirror of https://github.com/scrapy/scrapy.git
ignore request if spider is not opened in downloader when called from engine.download
This commit is contained in:
parent
749b136595
commit
e0ccb2cceb
|
|
@ -228,6 +228,9 @@ class ExecutionEngine(object):
|
|||
self.next_request(spider)
|
||||
return _
|
||||
|
||||
if spider not in self.downloader.sites:
|
||||
return defer.fail(Failure(IgnoreRequest())).addBoth(_on_complete)
|
||||
|
||||
dwld = mustbe_deferred(self.downloader.fetch, request, spider)
|
||||
dwld.addCallbacks(_on_success, _on_error)
|
||||
dwld.addBoth(_on_complete)
|
||||
|
|
|
|||
Loading…
Reference in New Issue