mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 03:38:12 +08:00
Merge #705 pdc: inform user that module can't be found
This commit is contained in:
@@ -188,7 +188,11 @@ def get_module(session, module_info, strict=False):
|
||||
# results set and jump to last one in another query. The last one is always
|
||||
# the latest one (the one with the highest version).
|
||||
#query['ordering'] = '-variant_release'
|
||||
retval = session['unreleasedvariants/'](page_size=1, **query)
|
||||
try:
|
||||
retval = session['unreleasedvariants/'](page_size=1, **query)
|
||||
except Exception as ex:
|
||||
log.debug("error during PDC lookup: %r" % ex)
|
||||
raise RuntimeError("Error during PDC lookup for module %s" % module_info["name"])
|
||||
|
||||
# Error handling
|
||||
if not retval or len(retval["results"]) == 0:
|
||||
|
||||
Reference in New Issue
Block a user