Skip to content

Commit

Permalink
catch permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Sep 5, 2023
1 parent fe914f6 commit 6a3cc40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ofscraper/utils/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ def getDB():
return get_profile_path()/"db.lock"

def cleanDB():
pathlib.Path(get_profile_path()/"db.lock").unlink(missing_ok=True)
try:
pathlib.Path(get_profile_path()/"db.lock").unlink(missing_ok=True)
except PermissionError:
None


def speed_file():
Expand Down

0 comments on commit 6a3cc40

Please sign in to comment.