mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-07 20:15:24 +00:00
Fix for Docker build, capture TypeError. Fixes #962
This commit is contained in:
parent
ab4365894b
commit
d772cf3f50
@ -67,7 +67,7 @@ class Patcher(object):
|
|||||||
version_main_int = int(version_main)
|
version_main_int = int(version_main)
|
||||||
# check if version_main_int is less than or equal to e.g 114
|
# 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
|
self.is_old_chromedriver = version_main and version_main_int <= 114
|
||||||
except ValueError:
|
except (ValueError,TypeError):
|
||||||
# If the conversion fails, print an error message
|
# If the conversion fails, print an error message
|
||||||
print("version_main cannot be converted to an integer")
|
print("version_main cannot be converted to an integer")
|
||||||
# Set self.is_old_chromedriver to False if the conversion fails
|
# Set self.is_old_chromedriver to False if the conversion fails
|
||||||
|
Loading…
x
Reference in New Issue
Block a user