Skip to content

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

fixed bug which was considering DOWNLOAD_DELAY as an int setting, where it should be a float

Pablo Hoffman51faec5dcdae
diff --git a/scrapy/core/downloader/manager.py b/scrapy/core/downloader/manager.py
index 5dffd193a..ad80c6caa 100644
--- a/scrapy/core/downloader/manager.py
+++ b/scrapy/core/downloader/manager.py
@@ -20,7 +20,7 @@ class SpiderInfo(object):
def __init__(self, download_delay=None, max_concurrent_requests=None):
if download_delay is None:
- self.download_delay = settings.getint('DOWNLOAD_DELAY')
+ self.download_delay = settings.getfloat('DOWNLOAD_DELAY')
else:
self.download_delay = download_delay
if download_delay: