Fix OSError: [WinError 6] The handle is invalid

https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/955#
This commit is contained in:
Gumi / Megumi 2023-05-12 08:51:35 +02:00 committed by GitHub
parent d29b3e300f
commit e16d3afe2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -752,7 +752,6 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
else:
logger.debug("successfully removed %s" % self.user_data_dir)
break
time.sleep(0.1)
# dereference patcher, so patcher can start cleaning up as well.
# this must come last, otherwise it will throw 'in use' errors