← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1246468] Re: Jenkins returning 404 cannot be distinguished

 

I've also tried to add a try/except block in cancel_queue method similar
to the get_build_info method however the response from from a
CANCEL_QUEUE REST call always seems to return None therefore  I'm not
sure how we could implement catching a 404.  It seems like we are
limited by the Jenkins REST api here.

-- 
You received this bug notification because you are a member of Python
Jenkins Developers, which is subscribed to Python Jenkins.
https://bugs.launchpad.net/bugs/1246468

Title:
  Jenkins returning 404 cannot be distinguished

Status in Python API for Jenkins:
  Incomplete

Bug description:
  If a non-GET request is made for a resource which doesn't exist—such
  as cancelling a non-existant queue item—no exception or error is
  reported to the user.  At the very least, a distinguishable error
  should be raised.  (Distinguishable in that it should not be
  JenkinsException, although it should be a subclass of
  JenkinsException).

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1246468/+subscriptions


References