8000 Fix for Docker build, capture TypeError. Fixes #962 · FlareSolverr/FlareSolverr@d772cf3 · GitHub
[go: up one dir, main page]

Skip to content

Commit d772cf3

Browse files
Fix for Docker build, capture TypeError. Fixes #962
1 parent ab43658 commit d772cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/undetected_chromedriver/patcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(
6767
version_main_int = int(version_main)
6868
# check if version_main_int is less than or equal to e.g 114
6969
self.is_old_chromedriver = version_main and version_main_int <= 114
70-
except ValueError:
70+
except (ValueError,TypeError):
7171
# If the conversion fails, print an error message
7272
print("version_main cannot be converted to an integer")
7373
# Set self.is_old_chromedriver to False if the conversion fails

0 commit comments

Comments
 (0)
0