int(number) after we've checked .isdigit() in utils.parse_number

This commit is contained in:
jesopo 2018-10-12 11:19:04 +01:00
parent 9771fc9f7a
commit a810d273d1

View file

@ -93,6 +93,7 @@ def parse_number(s):
number = s[:-1] number = s[:-1]
if not number.isdigit(): if not number.isdigit():
raise ValueError("Invalid format '%s' passed to parse_number") raise ValueError("Invalid format '%s' passed to parse_number")
number = int(number)
if unit == "k": if unit == "k":
number *= 1_000 number *= 1_000