From 810adb8a94ecb0e63ddb6416eaeb786b7c7f248e Mon Sep 17 00:00:00 2001 From: -LAN- Date: Sat, 21 Dec 2024 21:21:30 +0800 Subject: [PATCH] fix: change OutputParserError to inherit from ValueError (#11935) Signed-off-by: -LAN- --- api/core/llm_generator/output_parser/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/llm_generator/output_parser/errors.py b/api/core/llm_generator/output_parser/errors.py index 1e743f1757..0922806ca8 100644 --- a/api/core/llm_generator/output_parser/errors.py +++ b/api/core/llm_generator/output_parser/errors.py @@ -1,2 +1,2 @@ -class OutputParserError(Exception): +class OutputParserError(ValueError): pass