From 39b279a834f1c9358e0176a2133884037961538e Mon Sep 17 00:00:00 2001 From: Yuming Zhu Date: Sep 06 2023 12:50:19 +0000 Subject: hub: new_build: build in error should be the old one --- diff --git a/kojihub/kojihub.py b/kojihub/kojihub.py index 7364066..7a6d79e 100644 --- a/kojihub/kojihub.py +++ b/kojihub/kojihub.py @@ -6082,7 +6082,7 @@ def new_build(data, strict=False): old_binfo = get_build(data) if old_binfo: if strict: - raise koji.GenericError('Existing build found: %s' % data) + raise koji.GenericError(f'Existing build found: {old_binfo}') recycle_build(old_binfo, data) # Raises exception if there is a problem return old_binfo['id']