diff --git a/app/llm.py b/app/llm.py index 18a13af..f78a7f7 100644 --- a/app/llm.py +++ b/app/llm.py @@ -309,8 +309,8 @@ class LLM: elif isinstance(oe, APIError): logger.error(f"API error: {oe}") raise - except Exception as e: - logger.error(f"Unexpected error in ask: {e}") + except Exception: + logger.exception(f"Unexpected error in ask") raise @retry(