Skip to content

Commit 6c5b37f

Browse files
link docs for getproxies)(
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 2edff78 commit 6c5b37f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/databricks/sql/backend/sea/utils/http_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def __init__(
123123

124124
# Handle proxy settings
125125
try:
126-
# Try to get system proxy for this scheme (http/https)
126+
# returns a dictionary of scheme -> proxy server URL mappings.
127+
# https://docs.python.org/3/library/urllib.request.html#urllib.request.getproxies
127128
proxy = urllib.request.getproxies().get(self.scheme)
128129
except (KeyError, AttributeError):
129130
# No proxy found or getproxies() failed - disable proxy

0 commit comments

Comments
 (0)