From fb7e81fb694bf37ee95319428718a40ddc5b23aa Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 15 Mar 2022 19:17:25 -0300 Subject: [PATCH] Made the "Using `{}` for {} instead" message more clear - When normalize_values is false it adds ", only for sorting purposes" Related to #108 --- kibot/bom/bom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kibot/bom/bom.py b/kibot/bom/bom.py index 47f68518..b167901c 100644 --- a/kibot/bom/bom.py +++ b/kibot/bom/bom.py @@ -447,7 +447,8 @@ def group_components(cfg, components): value_sort = comp_match(value, c.ref_prefix) if value_sort is not None: c.value_sort = value_sort - logger.warning(get_last_warning() + "Using `{}` for {} instead".format(value, c.ref)) + extra = ', only for sorting purposes' if not cfg.normalize_values else '' + logger.warning(get_last_warning() + "Using `{}` for {} instead{}".format(value, c.ref, extra)) else: c.value_sort = None # Try to add the component to an existing group