mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-12 21:44:21 -06:00
Remove unneeded exception handling
This commit is contained in:
@@ -97,10 +97,6 @@ def get_ai_document_classification(
|
|||||||
else build_prompt_without_rag(document)
|
else build_prompt_without_rag(document)
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
client = AIClient()
|
||||||
client = AIClient()
|
result = client.run_llm_query(prompt)
|
||||||
result = client.run_llm_query(prompt)
|
return parse_ai_response(result)
|
||||||
return parse_ai_response(result)
|
|
||||||
except Exception as e:
|
|
||||||
logger.exception("Failed AI classification")
|
|
||||||
raise e
|
|
||||||
|
|||||||
Reference in New Issue
Block a user