Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print profile removal message only when actually removed #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nodriver/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def deconstruct_browser():
try:
if _.config and not _.config.uses_custom_data_dir:
shutil.rmtree(_.config.user_data_dir, ignore_errors=False)
print("successfully removed temp profile %s" % _.config.user_data_dir)
except FileNotFoundError as e:
break
except (PermissionError, OSError) as e:
Expand All @@ -152,7 +153,6 @@ def deconstruct_browser():
break
time.sleep(0.15)
continue
print("successfully removed temp profile %s" % _.config.user_data_dir)


def filter_recurse_all(
Expand Down