Santiago Buenahora Bustamante 2021-07-09 16:35:53 -05:00 committed by GitHub
parent 7ddbfd00d0
commit b00a26b93e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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)