wscall: fix record/notify on app errors, use status_code instead of status (#20809)

This commit is contained in:
Thomas NOËL 2017-12-20 01:14:32 +01:00
parent 730ff3d694
commit eb7a8abf96
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ class HttpRequestsMocking(object):
class FakeResponse(object):
def __init__(self, status, data, headers):
self.status = status
self.status_code = status
self.reason = 'whatever'
self.data = data
self.headers = headers or {}

View File

@ -364,7 +364,7 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
else:
summary = ''
if response:
summary = '%s %s' % (response.status, response.reason)
summary = '%s %s' % (response.status_code, response.reason)
try:
raise Exception(summary)
except Exception as e: