wscall: fix record/notify on app errors, use status_code instead of status (#20809)
This commit is contained in:
parent
730ff3d694
commit
eb7a8abf96
|
@ -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 {}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue