]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122909: Pass ftp error strings to URLError constructor (#122913)
authorJeremy Hylton <32469542+jeremyhylton@users.noreply.github.com>
Tue, 20 Aug 2024 00:35:05 +0000 (20:35 -0400)
committerGitHub <noreply@github.com>
Tue, 20 Aug 2024 00:35:05 +0000 (00:35 +0000)
commit77133f570dcad599e5b1199c39e999bfac959ae2
tree5429953945e935f54bca37487bf9a2867b8d8198
parent0480052ea1567d50e9772b836bc9f90bee11c2f7
gh-122909: Pass ftp error strings to URLError constructor (#122913)

* pass the original string error message from the ftplib error to URLError()

* Update request.py

Change error string for ftp error to be consistent with other errors reported for ftp

* Add NEWS entry for change to urllib.request for ftp errors.

* Track the change in the ftp error message in the test.
Lib/test/test_urllib2.py
Lib/urllib/request.py
Misc/NEWS.d/next/Library/2024-08-19-17-37-18.gh-issue-122909.kP12SK.rst [new file with mode: 0644]