Bug 1473636: raise errors in cancel-all action; r=tomprince
commitdd89d35a74e438cf67ceb3efacdeb651bfd2fa5e
authorDustin J. Mitchell <dustin@mozilla.com>
Thu, 5 Jul 2018 16:51:57 +0000 (5 16:51 +0000)
committerDustin J. Mitchell <dustin@mozilla.com>
Thu, 5 Jul 2018 16:51:57 +0000 (5 16:51 +0000)
tree351b1ffe2aa82a2ce285feb06d6c996ea2bd30df
parent1ad6b152e74a2dcee2d84ca252abcb7069b3e22b
Bug 1473636: raise errors in cancel-all action; r=tomprince

This changes

  File "/builds/worker/checkouts/gecko/taskcluster/taskgraph/actions/cancel_all.py", line 30, in list_group
    for task in [t['status'] for t in response['tasks']]:
KeyError: u'tasks'

Into a more understandable error (404, in this case).

MozReview-Commit-ID: 5XnFyxIdRfo

--HG--
extra : rebase_source : 797a3117d3246c962f30980c1658fde3bd366135
taskcluster/taskgraph/actions/cancel_all.py