failed WRONG_FIX UNSUBMITTED wrong_fix_unsubmitted(None) · None tool calls · 0 s · psf/requests
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -6,6 +6,11 @@ dev
- \[Short description of non-trivial change.\]
+**Bugfixes**
+
+- Fixed urllib3 exception leak, wrapping `urllib3.exceptions.SSLError` with
+ `requests.exceptions.SSLError` for `content` and `iter_content`.
+
2.27.1 (2022-01-05)
-------------------
--- a/requests/models.py
+++ b/requests/models.py
@@ -19,7 +19,12 @@ from urllib3.fields import RequestField
from urllib3.filepost import encode_multipart_formdata
from urllib3.util import parse_url
from urllib3.exceptions import (
- DecodeError, ReadTimeoutError, ProtocolError, LocationParseError)
+ DecodeError,
+ LocationParseError,
+ ProtocolError,
+ ReadTimeoutError,
+ SSLError,
+)
from io import UnsupportedOperation
from .hooks import default_hooks
@@ -32,6 +37,7 @@ from .exceptions import (
ContentDecodingError, ConnectionError, StreamConsumedError,
InvalidJSONError)
from .exceptions import JSONDecodeError as RequestsJSONDecodeError
+from .exceptions import SSLError as RequestsSSLError
from ._internal_utils import to_native_string, unicode_is_ascii
from .utils import (
guess_filename, get_auth_from_url, requote_uri,
@@ -765,6 +771,8 @@ class Response(object):
raise ContentDecodingError(e)
except ReadTimeoutError as e:
raise ConnectionError(e)
+ except SSLError as e:
+ raise RequestsSSLError(e)
else:
# Standard file-like object.
while True:
[2026-09-23 20:55:10,661] WARNING in core: flasgger is not installed; serving the static landing page at / and skipping the Swagger UI and /spec.json.
ImportError while loading conftest '/private/tmp/swe_work/mined_oracle/requests_6057/b/workspace/tests/conftest.py'.
tests/__init__.py:8: in <module>
from urllib3.exceptions import SNIMissingWarning
E ImportError: cannot import name 'SNIMissingWarning' from 'urllib3.exceptions' (/Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/requests/lib/python3.13/site-packages/urllib3/exceptions.py)