Raise a ValueError with details if module not found in PDC.
Currently, this will fail two lines later when we try to access `pdc_module['modulemd']` with an unhelpful `TypeError` since `pdc_module` is `None`. Signed-off-by: Ralph Bean <rbean@redhat.com>
This commit is contained in:
parent
c66f2228b5
commit
58fe997e29
@ -179,7 +179,7 @@ def populate_global_pkgset(compose, koji_wrapper, path_prefix, event_id):
|
||||
# to compose_tags list.
|
||||
if session:
|
||||
for module in variant.get_modules():
|
||||
pdc_module = get_module(session, module["name"])
|
||||
pdc_module = get_module(session, module["name"], strict=True)
|
||||
mmd = modulemd.ModuleMetadata()
|
||||
mmd.loads(pdc_module["modulemd"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user