mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
do a check for FileNotFoundException, which would mean it was already deleted/not present.
This commit is contained in:
parent
a13d05a2df
commit
b535bb962f
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue