File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
py/selenium/webdriver/remote Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 4242from selenium .common .exceptions import JavascriptException
4343from selenium .common .exceptions import NoSuchCookieException
4444from selenium .common .exceptions import NoSuchElementException
45- from selenium .common .exceptions import SessionNotCreatedException
4645from selenium .common .exceptions import WebDriverException
4746from selenium .webdriver .common .bidi .browser import Browser
4847from selenium .webdriver .common .bidi .network import Network
@@ -350,7 +349,7 @@ def start_session(self, capabilities: dict) -> None:
350349 response = self .execute (Command .NEW_SESSION , caps )["value" ]
351350 self .session_id = response .get ("sessionId" )
352351 self .caps = response .get ("capabilities" )
353- except ( SessionNotCreatedException , WebDriverException ) :
352+ except Exception :
354353 if self .service is not None :
355354 self .service .stop ()
356355 raise
You can’t perform that action at this time.
0 commit comments