Skip to content

Commit

Permalink
Add check that file exist before trying to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
rosswhitfield committed Jun 20, 2022
1 parent 4be89d1 commit 370fdcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipsframework/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,8 @@ def get_dask_finished_tasks_status(self):
self.services.exception('Error while reading dask worker log files: %s', str(e))
else:
for worker in worker_names:
os.remove(self.worker_event_logfile.format(worker))
if os.path.isfile(self.worker_event_logfile.format(worker)):
os.remove(self.worker_event_logfile.format(worker))

self.finished_tasks = {}
self.active_tasks = {}
Expand Down

0 comments on commit 370fdcb

Please sign in to comment.