Be careful in the event that there are no rpms associated with a module.

This commit is contained in:
Ralph Bean
2017-09-21 12:11:17 -04:00
parent f6fdd94fd0
commit 51d6b14cf6

View File

@@ -68,7 +68,7 @@ def show_module_info(server, build_id):
data = fetch_module_info(server, build_id)
table = []
for package_name, task_data in data["tasks"]["rpms"].items():
for package_name, task_data in data["tasks"].get("rpms", {}).items():
try:
koji_task_url = "%s?taskID=%s" % (DEFAULT_KOJI_TASK_URL, task_data['task_id'])
except KeyError: