Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError when closing browser. #4

Open
CrazedCoderNate opened this issue Jun 7, 2024 · 0 comments
Open

KeyError when closing browser. #4

CrazedCoderNate opened this issue Jun 7, 2024 · 0 comments

Comments

@CrazedCoderNate
Copy link

CrazedCoderNate commented Jun 7, 2024

Each time the util deconstruct_browser is called, I get the following error:

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/botasaurus_driver/core/util.py", line 101, in deconstruct_browser
_.close()
File "/usr/local/lib/python3.9/site-packages/botasaurus_driver/core/browser.py", line 371, in close
instances.remove(self)
KeyError: <botasaurus_driver.core.browser.Browser object at 0x7fe9fd6219a0>

My Dev Environment:
Running a simple scrape job using Docker. Here's my Configuration:

@browser(
reuse_driver=True,
cache=False,
close_on_crash=False,
output=None,
max_retry=3,
run_async=False,
headless=False,
block_images=True,
block_images_and_css=True
)
The scraping jobs still work and I receive a 0 exit code and exit as usual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant