Fix OSError: [WinError 6] The handle is invalid
https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/955#
This commit is contained in:
parent
d29b3e300f
commit
e16d3afe2d
|
@ -752,7 +752,6 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
|
||||||
else:
|
else:
|
||||||
logger.debug("successfully removed %s" % self.user_data_dir)
|
logger.debug("successfully removed %s" % self.user_data_dir)
|
||||||
break
|
break
|
||||||
time.sleep(0.1)
|
|
||||||
|
|
||||||
# dereference patcher, so patcher can start cleaning up as well.
|
# dereference patcher, so patcher can start cleaning up as well.
|
||||||
# this must come last, otherwise it will throw 'in use' errors
|
# this must come last, otherwise it will throw 'in use' errors
|
||||||
|
|
Loading…
Reference in New Issue