Error after 1st account clipped
a1ch3mist opened this issue · 1 comments
Running with multiple accounts. First account runs fine, but then this error occurs. Perhaps a case of how to handle teardown and setup of next session?
Clipped 471 coupons
Error: [WinError 2] The system cannot find the file specified
Exception ignored in: <function Chrome.del at 0x00000297C18F0E00>
Traceback (most recent call last):
File "c:\code\safeway-coupons-smkent\safeway-coupons.venv\Lib\site-packages\undetected_chromedriver_init_.py", line 843, in del
self.quit()
File "c:\code\safeway-coupons-smkent\safeway-coupons.venv\Lib\site-packages\undetected_chromedriver_init_.py", line 798, in quit
time.sleep(0.1)
OSError: [WinError 6] The handle is invalid
Researching this, it is a Windows uc issue, with this workaround:
After installing all the items for this safeway-coupons, edit your .venv/lib for uc
In that package, edit file init.py
Delete/comment out this line:
time.sleep(0.1)
If there's a more elegant solution, please share.