Skip to content

KeyError when closing browser. #4

@CrazedCoderNate

Description

@CrazedCoderNate

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions