Skip to content

Commit

Permalink
Change: use dp.exists instead of missing_ok to allow python 3.7 (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsfrei committed Aug 15, 2022
1 parent b5d2186 commit 69e590f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ospd/ospd.py
Expand Up @@ -135,7 +135,8 @@ def remove_previous_data_pickler_files():
root = Path(file_storage_dir)
for dp in root.glob('*'):
if is_uuid_re.match(dp.name):
dp.unlink(missing_ok=True)
if dp.exists():
dp.unlink()
return

self.scan_collection = ScanCollection(file_storage_dir)
Expand Down

0 comments on commit 69e590f

Please sign in to comment.