Skip to content

Commit

Permalink
merge PR: Fix of "OSError: [WinError 6] The handle is invalid". ultra…
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentOngaro committed Apr 5, 2024
1 parent 0aa5fbe commit 6c6a064
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion undetected_chromedriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,10 @@ def quit(self):
else:
logger.debug("successfully removed %s" % self.user_data_dir)
break
time.sleep(0.1)
try:
time.sleep(0.1)
except OSError:
pass

# dereference patcher, so patcher can start cleaning up as well.
# this must come last, otherwise it will throw 'in use' errors
Expand Down

0 comments on commit 6c6a064

Please sign in to comment.