summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/urllib.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index b24e9ea..a5c8fa2 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -1358,9 +1358,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)