Typo in utils.__init__, 'number' -> 'number_str'

This commit is contained in:
jesopo 2018-11-16 17:45:40 +00:00
parent 39c313bd64
commit 756c543c32

View file

@ -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")