mirror of https://github.com/scrapy/scrapy.git
fixed bug which was considering DOWNLOAD_DELAY as an int setting, where it should be a float
This commit is contained in:
parent
91f4d6dc51
commit
51faec5dcd
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue