Skip to content

Commit 7021015

Browse files
committed
fix workflow.deploy() not raise an error
1 parent 15ba5f3 commit 7021015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ctm_python_client/core/comm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def wrap(*args, **kwargs):
3636
except Exception as e:
3737
errors = [err.get('message', '') + ' ' + err.get('item', '')
3838
for err in json.loads(e.body)['errors']]
39-
return AAPIClientResponse(False, None, errors)
39+
raise RuntimeError(f"AAPI request failed: {', '.join(errors)}")
4040

4141
return wrap
4242

0 commit comments

Comments
 (0)