Commit 893a1e72 authored by Chris Lamb's avatar Chris Lamb 💬

comparators.symlink: Make cleanup of placeholders idempotent.

parent 0670bc0b
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment