Skip to content
Snippets Groups Projects
Commit 893a1e72 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

comparators.symlink: Make cleanup of placeholders idempotent.

parent 0670bc0b
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,10 @@ class Symlink(File):
def cleanup(self):
if hasattr(self, '_placeholder'):
os.remove(self._placeholder)
try:
os.remove(self._placeholder)
except FileNotFoundError:
pass
del self._placeholder
super().cleanup()
......
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