Fixed warning message (missing where info)

This commit is contained in:
Salvador E. Tropea 2021-10-19 09:27:33 -03:00
parent 2ab0e6a489
commit fcfe64e695
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ def comp_match(component, ref_prefix, ref=None):
if post:
if "." in value:
last_warning = W_BADVAL3
logger.warning(W_BADVAL3 + "Malformed value: `{}` (unit split, but contains decimal point)".format(original, where))
logger.warning(W_BADVAL3 + "Malformed value: `{}` (unit split, but contains decimal point{})".
format(original, where))
return None
value = float(value)
postValue = float(post) / (10 ** len(post))