Fixes Issue 201
Fixes https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/201
This commit is contained in:
parent
7ddbfd00d0
commit
b00a26b93e
|
@ -571,9 +571,8 @@ class Chrome(selenium.webdriver.Chrome):
|
|||
except Exception: # noqa
|
||||
pass
|
||||
|
||||
if hasattr(self, 'keep_user_data_dir') \
|
||||
and not self.keep_user_data_dir \
|
||||
or self.keep_user_data_dir is False:
|
||||
if hasattr(self, 'keep_user_data_dir') and \
|
||||
(not self.keep_user_data_dir or self.keep_user_data_dir is False):
|
||||
for _ in range(3):
|
||||
try:
|
||||
logger.debug("removing profile : %s" % self.user_data_dir)
|
||||
|
|
Loading…
Reference in New Issue