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

This commit is contained in:
Pablo Hoffman 2010-02-19 15:42:54 -02:00
parent 91f4d6dc51
commit 51faec5dcd
1 changed files with 1 additions and 1 deletions

View File

@ -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: