From b48bc7caa587aefb5a75bee5b377363b6c1fe856 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Dec 16 2021 13:26:04 +0000 Subject: Don't fail on missing buildroot tag Fixes: https://pagure.io/koji/issue/3185 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 54f527d..e4e787e 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -9700,8 +9700,10 @@ def policy_get_build_tags(data, taginfo=False): tags[None] = None else: tinfo = get_buildroot(br_id, strict=True) - tags[tinfo['tag_name']] = get_tag(tinfo['tag_name'], strict=True, - event=tinfo['repo_create_event_id']) + # CG don't need to have buildroots based on tags + if tinfo['tag_name']: + tags[tinfo['tag_name']] = get_tag(tinfo['tag_name'], strict=True, + event=tinfo['repo_create_event_id']) if taginfo: tags = tags.values()