Skip to content

Commit 56edd38

Browse files
committed
only remove lock file if it exists
1 parent 96217dd commit 56edd38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ibllib/pipes/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ def tearDown(self):
223223
Does not run if a lock is encountered by the task (status -2)
224224
"""
225225
if self.gpu >= 1:
226-
self._lock_file_path().unlink()
226+
if self._lock_file_path().exists():
227+
self._lock_file_path().unlink()
227228

228229
def cleanUp(self):
229230
"""

0 commit comments

Comments
 (0)