do a check for FileNotFoundException, which would mean it was already deleted/not present.

This commit is contained in:
Prabhjyot Singh 2016-11-29 12:33:32 +05:30
parent a13d05a2df
commit b535bb962f

View file

@ -466,7 +466,11 @@ public class InterpreterFactory implements InterpreterGroupFactory {
File localRepoDir = new File(conf.getInterpreterLocalRepoPath() + "/" +
setting.getId());
if (localRepoDir.exists()) {
FileUtils.cleanDirectory(localRepoDir);
try {
FileUtils.cleanDirectory(localRepoDir);
} catch (FileNotFoundException e) {
logger.info("A file that does not exist cannot be deleted, nothing to worry", e);
}
}
// load dependencies