Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weired running condition in quiet_delete #12

Open
spotlightgit opened this issue Apr 24, 2020 · 1 comment
Open

weired running condition in quiet_delete #12

spotlightgit opened this issue Apr 24, 2020 · 1 comment

Comments

@spotlightgit
Copy link

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
@ojwoodford
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants