fixed bug in engine.download() method

This commit is contained in:
Pablo Hoffman 2011-07-15 12:55:07 -03:00
parent 830255eea3
commit d207c0afe4
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class ExecutionEngine(object):
return self.scheduler.enqueue_request(spider, request)
def download(self, request, spider):
slot = self.slots[request]
slot = self.slots[spider]
slot.add_request(request)
if isinstance(request, Response):
return request