Fixed missing "where" in W_BADVAL3

This commit is contained in:
Salvador E. Tropea 2021-11-15 14:28:56 -03:00
parent 79651eaa07
commit ed8ae423e2
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))