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:
|
||||
import locale
|
||||
|
||||
language = locale.getdefaultlocale()[0].replace("_", "-")
|
||||
language = locale.getlocale()[0].replace("_", "-")
|
||||
except Exception:
|
||||
pass
|
||||
if not language:
|
||||
|
|
Loading…
Reference in New Issue