Update __init__.py
locale.getdefaultlocale() is deprecate, use locale.getlocale()
This commit is contained in:
parent
cea80717c5
commit
420dad2af5
|
@ -360,7 +360,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
|
||||||
try:
|
try:
|
||||||
import locale
|
import locale
|
||||||
|
|
||||||
language = locale.getdefaultlocale()[0].replace("_", "-")
|
language = locale.getlocale()[0].replace("_", "-")
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
if not language:
|
if not language:
|
||||||
|
|
Loading…
Reference in New Issue