Update __init__.py

Fix missed lines
This commit is contained in:
kaliiiiiiiiiii 2023-04-24 16:42:12 +02:00 committed by GitHub
parent e7933f0bfe
commit 9d34cada75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -308,6 +308,8 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
"window-size found in user argument %s => %s" % (arg, m[1])
)
keep_window_size = True
except IndexError:
keep_window_size = False
if "user-data-dir" in arg:
m = re.search("(?:--)?user-data-dir(?:[ =])?(.*)", arg)