Files
DeepTutor/deeptutor/tools/question
Rudy Celekli 5c39ff5b46 fix(tools): raise ValueError, not TypeError, on a None LLM response
extract_questions_with_llm raises ValueError("LLM returned empty or None
response") when the completion is None, but its except handler then sliced
result_text[:500] — None[:500] — raising TypeError and masking the intended
error. A None completion is a realistic provider outcome (content filter,
transient empty response) in the exam-mimic question pipeline.

Build the preview from (result_text or "") so the handler reports the clean
ValueError.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-01 09:36:42 -05:00
..
2026-06-17 00:56:27 +08:00
2026-04-23 19:29:16 +08:00