Files
romm/backend/tools
Georges-Antoine Assi f3ea3e498c test(api): keep helper responses in a swallowing try and resolve caught classes (#5781)
Follow-up to #5715, from the review findings posted after it merged:

- Inside a try that swallows errors, a call to a helper that returns an
  error response was dropped, so its status went missing. The analyzer
  now reads such a call in a "returned" mode that keeps the responses
  the helper builds or returns and drops what it raises.
- A handler for http.client.HTTPException was treated as catching
  FastAPI's HTTPException, since only the last name was compared. Handler
  classes now resolve through the module's imports, so the 502 that
  broker.request raises in webstation._cores_reply is kept.
- A declared raise inside a swallowing try no longer counts.
- Shorten the UNREADABLE_STATUS comment to two lines.


Claude-Session: https://claude.ai/code/session_011waFLFaNttxvn8EYtvLSwo

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 09:13:33 -05:00
..