fix #950 附件不存在时删除报错的问题 (#951)

pull/952/head
Li 2020-07-08 11:21:47 +08:00 committed by GitHub
parent 11f48781cb
commit 65c1424086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ public class LocalFileHandler implements FileHandler {
// Delete the file key
try {
Files.delete(path);
Files.deleteIfExists(path);
} catch (IOException e) {
throw new FileOperationException("附件 " + key + " 删除失败", e);
}