changeset 416ae587519f in trypod:default details: https://hg.tryton.org/trypod?cmd=changeset&node=416ae587519f description: Warn if post is not OK diffstat:
hook.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r c1808f446bc8 -r 416ae587519f hook.py --- a/hook.py Wed Mar 03 19:06:50 2021 +0100 +++ b/hook.py Wed Mar 17 11:43:38 2021 +0100 @@ -50,7 +50,7 @@ ui.status(b'trypod: trigger drone build\n') headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} r = requests.post(url, data=json.dumps(payload), headers=headers) - if r.ok: + if not r.ok: ui.warn(b'trypod: post failed %i\n' % r.status_code)