From 80643b9e85ca79aef41e1d5b3a0082c0c51cf7c3 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Jan 23 2018 22:28:25 +0000 Subject: Fix return value from jobs_from_compose for unsupported compose Whoops, we can't just return None here, as things that call it expect a (cid, [jobslist]) return value. Signed-off-by: Adam Williamson --- diff --git a/fedora_openqa/schedule.py b/fedora_openqa/schedule.py index b2a7890..d7bf413 100644 --- a/fedora_openqa/schedule.py +++ b/fedora_openqa/schedule.py @@ -256,7 +256,7 @@ def jobs_from_compose(location, wanted=None, force=False, extraparams=None, open except UnsupportedComposeError: # this is fine, we don't need to warn, just return logger.debug("Ignoring unsupported compose at %s", location) - return + return (rel.cid, []) logger.debug("Finding images for compose %s in location %s", rel.cid, location) images = _get_images(rel, wanted=wanted) if len(images) == 0: