This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yorik.sar
Recipients yorik.sar
Date 2010-06-03.07:31:46
SpamBayes Score 0.11715963
Marked as misclassified No
Message-id <1275550309.78.0.672707816894.issue8883@psf.upfronthosting.co.za>
In-reply-to
Content
I have straight IP in my proxy exception list like "192.168.0.2" without mask specification.

The proxy_bypass_macosx_sysconf function verifies each item in this list by regexp r"(\d+(?:\.\d+)*)(/\d+)?" that produces two groups: IP and mask. The mask can be None here (as in my case) and this None case isn't handled, so urllib crashes with "TypeError: 'NoneType' object is unsubscriptable".

I couldn't find specification of MacOS proxy exceptions list, so I don't know whether you can use just IP or prefix without mask specification. If you can, here is small patch that adds nesessary check and guesses mask if it is not specified. If you cannot, the last question mark should be removed from regex.
History
Date User Action Args
2010-06-03 07:31:49yorik.sarsetrecipients: + yorik.sar
2010-06-03 07:31:49yorik.sarsetmessageid: <1275550309.78.0.672707816894.issue8883@psf.upfronthosting.co.za>
2010-06-03 07:31:48yorik.sarlinkissue8883 messages
2010-06-03 07:31:47yorik.sarcreate