Files
Max Isbey ee2a010de7 Fix UnboundLocalError in send_request when response not assigned
Fixes an intermittent UnboundLocalError that could occur in send_request()
when anyio's fail_after context manager incorrectly suppresses exceptions
due to a race condition (anyio#589).

Changes:
- Initialize response_or_error to None before the try block
- Add _process_response static method with defensive None check
- Handle EndOfStream and ClosedResourceError exceptions explicitly
- Use try/except/else structure for cleaner control flow
- Add unit tests for _process_response

Closes #1717
2025-12-03 15:27:02 +00:00
..
2025-11-28 18:51:58 +00:00
2025-12-02 13:23:55 +00:00
2024-09-24 22:04:19 +01:00
2025-02-05 11:02:51 +00:00