Skip to content

Commit 95445e8

Browse files
committed
fixed packaging
1 parent 1193a91 commit 95445e8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

autoparaselenium/browser_pool.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from concurrent.futures import ThreadPoolExecutor
2+
from contextlib import suppress
23
from threading import Lock
34
from queue import Queue
45

@@ -37,7 +38,10 @@ def __get_queue(self, browser):
3738

3839

3940
def __open_browser(self, browser):
40-
return browser.get_selenium(self._conf.selenium_dir, self._conf)
41+
driver = browser.get_selenium(self._conf.selenium_dir, self._conf)
42+
with suppress(Exception):
43+
driver.switch_to.window("1")
44+
return driver
4145

4246

4347
def clean_up(self):

autoparaselenium/browsers/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)