mirror of https://github.com/scrapy/scrapy.git
fix a possible error in contracts post hook
This commit is contained in:
parent
6db259c075
commit
45d6d2044c
|
|
@ -99,8 +99,8 @@ class Contract(object):
|
|||
|
||||
@wraps(cb)
|
||||
def wrapper(response):
|
||||
output = list(iterate_spider_output(cb(response)))
|
||||
try:
|
||||
output = list(iterate_spider_output(cb(response)))
|
||||
results.startTest(self.testcase_post)
|
||||
self.post_process(output)
|
||||
results.stopTest(self.testcase_post)
|
||||
|
|
|
|||
Loading…
Reference in New Issue