From 9d34cada752c6e9b9ff27d0d4e06c662bb678d19 Mon Sep 17 00:00:00 2001 From: kaliiiiiiiiiii <89038706+kaliiiiiiiiii@users.noreply.github.com> Date: Mon, 24 Apr 2023 16:42:12 +0200 Subject: [PATCH] Update __init__.py Fix missed lines --- undetected_chromedriver/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index 857f255..16ff26f 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -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)