int(number) after we've checked .isdigit() in utils.parse_number
This commit is contained in:
parent
9771fc9f7a
commit
a810d273d1
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ def parse_number(s):
|
|||
number = s[:-1]
|
||||
if not number.isdigit():
|
||||
raise ValueError("Invalid format '%s' passed to parse_number")
|
||||
number = int(number)
|
||||
|
||||
if unit == "k":
|
||||
number *= 1_000
|
||||
|
|
Loading…
Reference in a new issue