Skip to content

Commit

Permalink
fix trash clean troubles
Browse files Browse the repository at this point in the history
  • Loading branch information
DedInc committed Apr 19, 2024
1 parent 7f6780e commit 17644d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion selenium_dolphin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ def get_profile_folder():

def clean_if_exists(dir_to_clean):
if os.path.exists(dir_to_clean):
shutil.rmtree(dir_to_clean)
try:
shutil.rmtree(dir_to_clean)
except OSError:
pass


def collect_garbage(api=None, profile_id=None):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='selenium_dolphin',
version='1.0.5',
version='1.0.6',
author='Maehdakvan',
author_email='visitanimation@google.com',
description='A Python module for controlling Dolphin browser profiles using Selenium/Pyppeteer. It also has a Dolphin API for creating, editing, and deleting profiles.',
Expand Down

0 comments on commit 17644d4

Please sign in to comment.