Use except Exception

This commit is contained in:
Stas Glubokiy 2018-08-18 15:24:30 +03:00
parent 11576f5c8f
commit e2de0a7203
1 changed files with 1 additions and 1 deletions

View File

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