Update __init__.py

locale.getdefaultlocale() is deprecate, use locale.getlocale()
This commit is contained in:
lp177 2023-11-07 16:03:28 +01:00 committed by GitHub
parent cea80717c5
commit 420dad2af5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
try:
import locale
language = locale.getdefaultlocale()[0].replace("_", "-")
language = locale.getlocale()[0].replace("_", "-")
except Exception:
pass
if not language: