From: Ronald Oussoren Date: Sun, 20 Sep 2009 10:54:07 +0000 (+0000) Subject: Followup for r74962 X-Git-Tag: v2.7a1~486 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=809073bee109f72c939be1a5631d03ede97fbf50;p=python Followup for r74962 --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 51e8df9c89..8b4029db6f 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -1354,9 +1354,8 @@ if sys.platform == 'darwin': if proxy_settings['exclude_simple']: return True - for value in proxy_settings.get('exceptions'): + for value in proxy_settings.get('exceptions', ()): # Items in the list are strings like these: *.local, 169.254/16 - value = sc.CFArrayGetValueAtIndex(exceptions, index) if not value: continue m = re.match(r"(\d+(?:\.\d+)*)(/\d+)?", value)