From d772cf3f505f98eaf6f56f8d3eea586bca203cf9 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Mon, 13 Nov 2023 07:14:13 +0000 Subject: [PATCH] Fix for Docker build, capture TypeError. Fixes #962 --- src/undetected_chromedriver/patcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/undetected_chromedriver/patcher.py b/src/undetected_chromedriver/patcher.py index b388954..78b7617 100644 --- a/src/undetected_chromedriver/patcher.py +++ b/src/undetected_chromedriver/patcher.py @@ -67,7 +67,7 @@ class Patcher(object): version_main_int = int(version_main) # check if version_main_int is less than or equal to e.g 114 self.is_old_chromedriver = version_main and version_main_int <= 114 - except ValueError: + except (ValueError,TypeError): # If the conversion fails, print an error message print("version_main cannot be converted to an integer") # Set self.is_old_chromedriver to False if the conversion fails