From 407659a34d1e5d778ca5b124696c9421152dcc1e Mon Sep 17 00:00:00 2001 From: sebthom Date: Sun, 27 Mar 2022 20:09:35 +0200 Subject: [PATCH] Ensure configured binary location is correct --- kleinanzeigen_bot/selenium_mixin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kleinanzeigen_bot/selenium_mixin.py b/kleinanzeigen_bot/selenium_mixin.py index 2497846..0b66d27 100644 --- a/kleinanzeigen_bot/selenium_mixin.py +++ b/kleinanzeigen_bot/selenium_mixin.py @@ -108,6 +108,7 @@ class SeleniumMixin: else: # determine browser major version if self.browser_config.binary_location: + ensure(os.path.exists(self.browser_config.binary_location), f"Specified browser binary [{self.browser_config.binary_location}] does not exist.") chrome_type, chrome_version = self.get_browser_version(self.browser_config.binary_location) else: browser_info = self.find_compatible_browser()