Fix unsupported locale errors on Linux

This commit is contained in:
sigma67 2020-07-09 19:11:47 +02:00
commit 81df1505fd
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
2 changed files with 18 additions and 15 deletions

View file

@ -50,8 +50,7 @@ def get_authorization(auth):
return "SAPISIDHASH " + unix_timestamp + "_" + sha_1.hexdigest()
def to_int(string, language):
locale.setlocale(locale.LC_ALL, language)
def to_int(string):
number = string.split(' ')[0]
return locale.atoi(number)