Fix reference to is_old_chromedriver when setting platform name

This commit is contained in:
jdholtz 2023-08-16 21:18:21 -05:00
parent 0ae871fed3
commit 1ef8e8cead
No known key found for this signature in database
GPG Key ID: A3A87CFD1E4A1B65
1 changed files with 1 additions and 1 deletions

View File

@ -62,6 +62,7 @@ class Patcher(object):
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 @@ class Patcher(object):
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: