Scrapy, a fast high-level web crawling & scraping framework for Python.
engine: make it more explicit that we don't need to return the value of nextcall.schedule()
Pablo Hoffman6e50f9440688
diff --git a/scrapy/core/engine.py b/scrapy/core/engine.pyindex 002bd7a1f..b2c8baf07 100644--- a/scrapy/core/engine.py+++ b/scrapy/core/engine.py@@ -95,7 +95,8 @@ class ExecutionEngine(object):returnif self.paused:- return slot.nextcall.schedule(5)+ slot.nextcall.schedule(5)+ returnwhile not self._needs_backout(spider):if not self._next_request_from_scheduler(spider):@@ -235,7 +236,8 @@ class ExecutionEngine(object):spider=spider, dont_log=DontCloseSpider)if any(isinstance(x, Failure) and isinstance(x.value, DontCloseSpider) \for _, x in res):- return self.slots[spider].nextcall.schedule(5)+ self.slots[spider].nextcall.schedule(5)+ returnif self.spider_is_idle(spider):self.close_spider(spider, reason='finished')