Typo in utils.__init__, 'number' -> 'number_str'
This commit is contained in:
parent
39c313bd64
commit
756c543c32
1 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,8 @@ def parse_number(s: str) -> str:
|
|||
try:
|
||||
number = decimal.Decimal(number_str)
|
||||
except:
|
||||
raise ValueError("Invalid format '%s' passed to parse_number" % number)
|
||||
raise ValueError("Invalid format '%s' passed to parse_number" %
|
||||
number_str)
|
||||
|
||||
if unit == "k":
|
||||
number *= decimal.Decimal("1_000")
|
||||
|
|
Loading…
Reference in a new issue