From 51faec5dcdae3dd6bc67441b0c2340798134c1a5 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Fri, 19 Feb 2010 15:42:54 -0200 Subject: [PATCH] fixed bug which was considering DOWNLOAD_DELAY as an int setting, where it should be a float --- scrapy/core/downloader/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: