title: get_job_info() giving item not found error : python-jenkins
body: <p>I am using <a href="http://python-jenkins.readthedocs.io/en/latest/" rel="nofollow noreferrer">python-jenkins</a> and python 3.6 </p>
  
  <p>Trying to get the information regarding the jobs in jenkins but facing an error.</p>
  
  <blockquote>
    <p>File "/usr/local/lib/python3.6/dist-packages/jenkins/<strong>init</strong>.py",
    line 359, in get_job_info
        self._build_url(JOB_INFO, locals())   File "/usr/local/lib/python3.6/dist-packages/jenkins/<strong>init</strong>.py", line
    451, in jenkins_open
        raise NotFoundException('Requested item could not be found') jenkins.NotFoundException: Requested item could not be found</p>
  </blockquote>
  
  <pre><code>jobs = server.get_all_jobs()
  for j in jobs:
      jobName = j['name'] # get job name
      print(jobName)
      lastJobId = getLastJobId(session, jobName) # get last locally stored job of this name
      print(lastJobId)
      lastBuildNumber = server.get_job_info(jobName)
  </code></pre>
  
  <p>get_all_jobs() is working fine but <a href="http://python-jenkins.readthedocs.io/en/latest/api.html#jenkins.Jenkins.get_job_info" rel="nofollow noreferrer">get_job_info()</a> is not working.</p>
  
  <p>Any help will be appreciated.</p>