Skip to content

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

AutoThrottle: added missing line to connect spider_closed hanlder

Pablo Hoffmand29eccba5678
diff --git a/scrapy/contrib/throttle.py b/scrapy/contrib/throttle.py
index 414cff51a..f067b8641 100644
--- a/scrapy/contrib/throttle.py
+++ b/scrapy/contrib/throttle.py
@@ -64,6 +64,7 @@ class AutoThrottle(object):
def __init__(self):
dispatcher.connect(self.spider_opened, signal=signals.spider_opened)
+ dispatcher.connect(self.spider_closed, signal=signals.spider_closed)
dispatcher.connect(self.response_received, signal=signals.response_received)
self.last_latencies = {}
self.last_lat = {}