Fix NoneType crash in LLM plural check when OpenRouter returns null content

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
master
PeninsulaInd 2026-03-25 15:30:36 -05:00
parent 74d20a406a
commit dcfabc2261
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class Scheduler:
timeout=15,
)
resp.raise_for_status()
answer = resp.json()["choices"][0]["message"]["content"].strip()
answer = (resp.json()["choices"][0]["message"]["content"] or "").strip()
result = "YES" in answer.upper()
log.debug("LLM plural check: '%s' vs '%s' ->%s (%s)", a, b, result, answer)
except Exception as e: