Skip to content

Commit

Permalink
Fix reference to is_old_chromedriver when setting platform name
Browse files Browse the repository at this point in the history
  • Loading branch information
jdholtz committed Aug 17, 2023
1 parent 0ae871f commit 1ef8e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion undetected_chromedriver/patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1ef8e8c

Please sign in to comment.