Skip to content

Commit f09035d

Browse files
committed
removed old code
1 parent 9f8d1cd commit f09035d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

seleniumbase/undetected/__init__.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,7 @@ def __init__(
131131
self.patcher.auto()
132132
if not options:
133133
options = ChromeOptions()
134-
try:
135-
if hasattr(options, "_session") and options._session is not None:
136-
# Prevent reuse of options.
137-
# (Probably a port overlap. Quit existing driver and continue.)
138-
logger.debug("You cannot reuse the ChromeOptions object")
139-
with suppress(Exception):
140-
options._session.quit()
141-
except AttributeError:
142-
pass
143-
options._session = self
134+
144135
debug_host = "127.0.0.1"
145136
debug_port = 9222
146137
special_port_free = False # If the port isn't free, don't use 9222

0 commit comments

Comments
 (0)