batch_job icon indicating copy to clipboard operation
batch_job copied to clipboard

weired running condition in quiet_delete

Open spotlightgit opened this issue 4 years ago • 1 comments

Sometimes I get this command line output in MATLAB:

Warning: File 'I:\...\Test\parallel\tpfdf378df_8cd6_4c9f_9c19_62abac37695c.mat' not found. 
> In quiet_delete (line 4)
  In batch_job_collect (line 94)
  In batch_job_distrib (line 201)
  ...
  In start (line 12) 

Maybe it's helpful to add a try catch block around the delete command in quiet_delete.m

if exist(fname{1}, 'file')
   try
      delete(fname{1});
   catch
   end
end

spotlightgit avatar Apr 24 '20 16:04 spotlightgit

try catch will not hide the warning, as it is not an error. I could turn off the warning.

ojwoodford avatar Apr 24 '20 18:04 ojwoodford