fix a possible error in contracts post hook

This commit is contained in:
Alex Cepoi 2013-07-08 16:54:20 +02:00
parent 6db259c075
commit 45d6d2044c
1 changed files with 1 additions and 1 deletions

View File

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