mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
Add more debug information to this sanity check.
This commit is contained in:
@@ -153,7 +153,8 @@ def main():
|
||||
# First, some validation that the badge ids actually exist.
|
||||
for fas_group, badge_id in mapping.items():
|
||||
badge = tahrir.get_badge(badge_id=badge_id)
|
||||
assert(badge.id)
|
||||
if not badge:
|
||||
raise ValueError("%r is not a valid badge id" % badge_id)
|
||||
|
||||
# Then, do a long query against FAS for our candidates.
|
||||
results = get_fas_groupings(fas_credentials=fm_config['fas_credentials'],
|
||||
|
||||
Reference in New Issue
Block a user