fix(llm): 修复知识库创建异常未被捕获的问题
- 移除了多余的空行 - 在捕获异常并记录日志后,添加了异常抛出,确保异常不会被静默处理
This commit is contained in:
parent
71dab5dd28
commit
cac9605b57
@ -70,7 +70,6 @@ public class AsyncKnowledgeBase {
|
||||
} else {
|
||||
knowledgeEmbed(knowledge, knowledge.getKnowledgeBaseId());
|
||||
}
|
||||
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("the creation of the knowledge base error {}", e.getMessage());
|
||||
@ -80,6 +79,7 @@ public class AsyncKnowledgeBase {
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -119,6 +119,7 @@ public class AsyncKnowledgeBase {
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("the creation of the knowledge base error {}", e.getMessage(), e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user