Skip to content

Commit 569770e

Browse files
fix: correct argument limit error (#2758)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
1 parent 326d6a4 commit 569770e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dbgpt-core/src/dbgpt/rag/transformer/llm_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def _extract(
5656
"""Inner extract by LLM."""
5757
# limit check
5858
if limit and limit < 1:
59-
ValueError("optional argument limit >= 1")
59+
raise ValueError("optional argument limit >= 1")
6060

6161
template = HumanPromptTemplate.from_template(self._prompt_template)
6262

0 commit comments

Comments
 (0)