~abentley/ci-director/convert-to-gitbranch

« back to all changes in this revision

Viewing changes to cidirector/cidirector.py

  • Committer: Curtis Hovey
  • Date: 2016-03-05 18:08:43 UTC
  • Revision ID: curtis@canonical.com-20160305180843-tns3hv71p1vp3wt7
See what the uncaught exception is accessing some Jenkins jobs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
437
437
        except JenkinsException:
438
438
            # The job was renamed while CID was running.
439
439
            return None
440
 
        except:
 
440
        except Exception as e:
441
441
            logger.warn(
442
442
                'failed: JobInfo.from_jenkins(jenkins, {})'.format(job_id))
 
443
            logger.warn(str(e))
 
444
            return None
443
445
        config = cls.config_from_description(job_id, description, logger)
444
446
        if config:
445
447
            return cls(job_id, logger, state_file, jenkins, **config)