From 1ef8e8cead3f24314c16914c627d0e3de8d2f684 Mon Sep 17 00:00:00 2001 From: jdholtz Date: Wed, 16 Aug 2023 21:18:21 -0500 Subject: [PATCH] Fix reference to is_old_chromedriver when setting platform name --- undetected_chromedriver/patcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/undetected_chromedriver/patcher.py b/undetected_chromedriver/patcher.py index 6ff765ed..7a023d4e 100644 --- a/undetected_chromedriver/patcher.py +++ b/undetected_chromedriver/patcher.py @@ -62,6 +62,7 @@ def __init__( prefix = "undetected" self.user_multi_procs = user_multi_procs + self.is_old_chromedriver = version_main and version_main <= 114 # Needs to be called before self.exe_name is accessed self._set_platform_name() @@ -91,7 +92,6 @@ def __init__( self.executable_path = executable_path # Set the correct repository to download the Chromedriver from - self.is_old_chromedriver = version_main and version_main <= 114 if self.is_old_chromedriver: self.url_repo = "https://chromedriver.storage.googleapis.com" else: