Author Petter S
Recipients Petter S
Date 2020-05-18.21:30:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589837413.34.0.736050920356.issue40673@roundup.psfhosted.org>
In-reply-to
Content
The following code crashes with TypeError:

URLopener().open("unknown_proxy://test")

the expected behavior is an OSError, which is normally raised for unknown protocols.

This implementation of directly calling a method called "unknown_proxy" is fragile and was recently the subject of a security issue: https://bugs.python.org/issue35907 (CVE-2019-9948)

Would be good to make this more robust.
History
Date User Action Args
2020-05-18 21:30:13Petter Ssetrecipients: + Petter S
2020-05-18 21:30:13Petter Ssetmessageid: <1589837413.34.0.736050920356.issue40673@roundup.psfhosted.org>
2020-05-18 21:30:13Petter Slinkissue40673 messages
2020-05-18 21:30:12Petter Screate