Skip to content

Commit bd069bc

Browse files
committed
FIX: Stop browser case error Undetected
1 parent 46ab1fa commit bd069bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

botcity/web/bot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ def _instance_driver(self, driver_class, func_def_options):
269269
driver = driver_class(**self._get_parameters_to_driver())
270270
except WebDriverException as error:
271271
if 'This version of ChromeDriver only supports Chrome version' in error.msg:
272+
self.stop_browser()
272273
try:
273274
correct_version = int(error.msg.split('Current browser version is ')[1].split('.')[0])
274275
except Exception:

0 commit comments

Comments
 (0)