mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 05:49:26 +08:00
`modalities_attempts` is never empty, so `resp` is always bound when the loop ends — the second refusal stays in it. `last_404`, the `resp is None` guard and the `assert` were three ways of restating that, and an `assert` in a request path disappears under `python -O`. (cherry picked from commit f2dfe4550d52c80d5bee1502a281eafcfaa491d4)