This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Commit 6bcbc33
committed
chore: improve metadata service error handling
Distinguish between retry exhaustion due to exceptions and retry exhaustion due to retryable status codes.
- Use `last_exception` to track the most recent exception.
- Clear `last_exception` on successful response (even if status is retryable).
- Raise TransportError chained from `last_exception` if available.
- Otherwise raise TransportError with response status and details.
- Update tests to match new error format.1 parent 9501f27 commit 6bcbc33
0 file changed
0 commit comments