Skip to content
Snippets Groups Projects
Commit 291b7f69 authored by payno's avatar payno
Browse files

remove_existing_data_files: allow url to be None

parent 95cc01a3
No related branches found
No related tags found
1 merge request!243Fix single frame
Pipeline #209512 passed
...@@ -216,7 +216,7 @@ class VolumeSingleFrameBase(VolumeBase): ...@@ -216,7 +216,7 @@ class VolumeSingleFrameBase(VolumeBase):
} }
return data_path.format(**keywords) return data_path.format(**keywords)
def remove_existing_data_files(self, url: DataUrl) -> None: def remove_existing_data_files(self, url: DataUrl | None = None) -> None:
"""Clean any existing files (if overwrite and rights) that must be used for saving""" """Clean any existing files (if overwrite and rights) that must be used for saving"""
if not os.path.exists(url.file_path()): if not os.path.exists(url.file_path()):
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment