mirror of https://github.com/scrapy/scrapy.git
Use except Exception
This commit is contained in:
parent
11576f5c8f
commit
e2de0a7203
|
|
@ -44,7 +44,7 @@ class ContractsManager(object):
|
|||
bound_method = spider.__getattribute__(method)
|
||||
try:
|
||||
requests.append(self.from_method(bound_method, results))
|
||||
except:
|
||||
except Exception:
|
||||
case = _create_testcase(bound_method, 'contract')
|
||||
results.addError(case, sys.exc_info())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue