Align text generation error catches (#3292)

Co-authored-by: codex <codex@users.noreply.github.com>
bd8e3ee008Julius Marminge committed on 6/20/2026, 7:29:24 PM· committed by GitHubparentc1d8a22
5 files changedLine totals unavailable