mirror of https://github.com/scrapy/scrapy.git
item pipeline: added check for domain not already closed
This commit is contained in:
parent
aeb9734a80
commit
5e3ef5a2fd
|
|
@ -51,10 +51,10 @@ class ItemPipelineManager(object):
|
|||
|
||||
This pipeline is configurable with the ITEM_PIPELINES setting
|
||||
"""
|
||||
if not self.pipeline:
|
||||
domain = spider.domain_name
|
||||
if not self.pipeline or domain not in self.domaininfo:
|
||||
return defer_succeed(item)
|
||||
|
||||
domain = spider.domain_name
|
||||
pipeline = self.pipeline[:]
|
||||
current_stage = pipeline[0]
|
||||
info = self.domaininfo[domain]
|
||||
|
|
|
|||
Loading…
Reference in New Issue