mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-07 20:15:24 +00:00
Check not running in Docker before logging version_main error
This commit is contained in:
parent
984368edb5
commit
2ecf88895b
@ -68,8 +68,10 @@ class Patcher(object):
|
|||||||
# 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,TypeError):
|
except (ValueError,TypeError):
|
||||||
# If the conversion fails, print an error message
|
# Check not running inside Docker
|
||||||
print("version_main cannot be converted to an integer")
|
if not os.path.exists("/app/chromedriver"):
|
||||||
|
# If the conversion fails, log an error message
|
||||||
|
logging.info("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
|
||||||
self.is_old_chromedriver = False
|
self.is_old_chromedriver = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user