wscall: non error codes are 2xx and 3xx not 4xx (#3016)
This commit is contained in:
parent
bbaae634e4
commit
7408aa5e3c
|
@ -78,7 +78,7 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
|
|||
formdata.update_workflow_data(workflow_data)
|
||||
formdata.store()
|
||||
|
||||
if (status // 100) not in (2, 4):
|
||||
if (status // 100) not in (2, 3):
|
||||
raise Exception("Call to webservice gave %s as status code" % status)
|
||||
|
||||
register_item_class(WebserviceCallStatusItem)
|
||||
|
|
Loading…
Reference in New Issue