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

Exception ignored in: <function Chrome.__del__ at 0x0000018EFF3274C0> #1490

Open
ggnetoo opened this issue Aug 17, 2023 · 5 comments
Open

Exception ignored in: <function Chrome.__del__ at 0x0000018EFF3274C0> #1490

ggnetoo opened this issue Aug 17, 2023 · 5 comments

Comments

@ggnetoo
Copy link

ggnetoo commented Aug 17, 2023

Python 3.11

When Process which open the undetected chromedriver finishes, this error is triggered:

Exception ignored in: <function Chrome.__del__ at 0x0000018EFF3274C0>
Traceback (most recent call last):
  File "C:\Users\Mano\AppData\Local\Programs\Python\Python311\Lib\site-packages\undetected_chromedriver\__init__.py", line 843, in __del__
    self.quit()
  File "C:\Users\Mano\AppData\Local\Programs\Python\Python311\Lib\site-packages\undetected_chromedriver\__init__.py", line 798, in quit   
    time.sleep(0.1)
OSError: [WinError 6] Identificador inválido

image

@richard-hurley
Copy link

For me this was fixed by surrounding it with a try block. I'm not sure why:

            try:
                time.sleep(0.1)
            except:
                pass

@jdholtz
Copy link
Contributor

jdholtz commented Aug 18, 2023

This has been fixed in #1339

@ggnetoo
Copy link
Author

ggnetoo commented Aug 18, 2023

This has been fixed in #1339

Is this the fix or the workaround?

@jdholtz
Copy link
Contributor

jdholtz commented Aug 18, 2023

Is this the fix or the workaround?

This is the fix, but it has yet to be merged into the library

@Anonymous6598
Copy link

For me this was fixed by surrounding it with a try block. I'm not sure why:

            try:
                time.sleep(0.1)
            except:
                pass

Thank you! It helped me a lot.

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

4 participants