failed dict.get evaluates to None

This commit is contained in:
Alfredo Deza 2013-07-19 09:01:28 -04:00
parent 65f49beb35
commit 5263a6f758

View File

@ -86,7 +86,7 @@ describe. One job is run at a time.
teuth_path = os.path.join(os.getenv("HOME"), 'teuthology-' + teuthology_branch, 'virtualenv', 'bin')
if not os.path.isdir(teuth_path):
raise Exception('Teuthology branch ' + teuthology_branch + ' not found at ' + teuth_path)
if job_config.get('last_in_suite', False):
if job_config.get('last_in_suite'):
log.debug('Generating coverage for %s', job_config['name'])
args = [
os.path.join(teuth_path, 'teuthology-results'),