fix/number parse error
This commit is contained in:
parent
c219f6723e
commit
e1c77f1da0
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ def get_datestamp():
|
|||
|
||||
|
||||
def to_int(string):
|
||||
number_string = re.split('[\x20\xa0]', string)[0]
|
||||
number_string = re.sub('[^\\d]', '', string)
|
||||
try:
|
||||
int_value = locale.atoi(number_string)
|
||||
except ValueError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue