From 9ecc07669e2d9285cf6de7b0b8c4a1509663f9be Mon Sep 17 00:00:00 2001 From: Yuxiang Zhu Date: Fri, 3 Sep 2021 10:08:37 +0800 Subject: [PATCH] Improve bundle build error message (#508) `bundle_nvr` could be None. It is assigned by Brew. --- doozerlib/cli/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doozerlib/cli/__main__.py b/doozerlib/cli/__main__.py index 4336d9129..eb1b86b4d 100644 --- a/doozerlib/cli/__main__.py +++ b/doozerlib/cli/__main__.py @@ -2287,7 +2287,7 @@ def rebase_and_build(operator): record['task_url'] = task_url record['bundle_nvr'] = bundle_nvr except Exception as err: - runtime.logger.error('Error during rebase or build for: {}'.format(bundle_nvr)) + runtime.logger.error('Error during rebase or build for: {}'.format(olm_bundle.bundle_brew_component)) traceback.print_exc() record['message'] = str(err) finally: