Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unhandled AttributeError when chrome browser version cannot be determined #638

Closed
wants to merge 1 commit into from

Commits on Oct 15, 2023

  1. Fix unhandled AttributeError when chrome browser version cannot be de…

    …termined
    
    ```py
    Traceback (most recent call last):
      ...
      File "D:\app\__pypackages__\3.12\lib\webdriver_manager\chrome.py", line 40, in install
        driver_path = self._get_driver_binary_path(self.driver)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\app\__pypackages__\3.12\lib\webdriver_manager\core\manager.py", line 40, in _get_driver_binary_path
        file = self._download_manager.download_file(driver.get_driver_download_url(os_type))
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\app\__pypackages__\3.12\lib\webdriver_manager\drivers\chrome.py", line 32, in get_driver_download_url
        driver_version_to_download = self.get_driver_version_to_download()
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\app\__pypackages__\3.12\lib\webdriver_manager\core\driver.py", line 48, in get_driver_version_to_download
        return self.get_latest_release_version()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\app\__pypackages__\3.12\lib\webdriver_manager\drivers\chrome.py", line 64, in get_latest_release_version
        determined_browser_version = ".".join(determined_browser_version.split(".")[:3])
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'NoneType' object has no attribute 'split'
    ```
    sebthom committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    f6a40b5 View commit details
    Browse the repository at this point in the history