Leaklens

psf__requests-2148

socket.error exception not caught/wrapped in a requests exception (ConnectionError perhaps?)

Verdict: the issue points to the file or function that was changed (Tier B).

`iter_content` doesn't seem to expect any socket errors, but it should. We need to fix this.

The text points to the exact place to change: “`iter_content` doesn't seem to expect any socket errors, but it should. We need to fix this.”

All SWE-bench Lite tasks · more psf/requests tasks · How the check works