Skip to content

Commit 1f89fff

Browse files
authored
Handle missing temp files during cleanup (#188)
1 parent 7d1fda2 commit 1f89fff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/process.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ def __del__(self):
5353
self.kill()
5454
for f in self._files.values():
5555
f.close()
56-
os.unlink(f.name)
56+
try:
57+
os.unlink(f.name)
58+
except FileNotFoundError:
59+
pass
5760

5861
@property
5962
def pid(self):

0 commit comments

Comments
 (0)