From 4465be89e7b350e2dd9f708f3abf5ff770150223 Mon Sep 17 00:00:00 2001 From: lrossett Date: Feb 23 2021 12:15:07 +0000 Subject: adding check for license header --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index bcca6ea..d571577 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -3179,7 +3179,8 @@ def anon_handle_rpminfo(goptions, session, args): if not info.get('external_repo_id', 0): headers = session.getRPMHeaders(rpmID=info['id'], headers=["license"]) - print("License: %(license)s" % headers) + if 'license' in headers: + print("License: %(license)s" % headers) print("Build ID: %(build_id)s" % info) if info['buildroot_id'] is None: print("No buildroot data available")