wscall: non error codes are 2xx and 3xx not 4xx (#3016)

This commit is contained in:
Benjamin Dauvergne 2013-06-05 16:20:36 +02:00
parent bbaae634e4
commit 7408aa5e3c
1 changed files with 1 additions and 1 deletions

View File

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