Skip to content

Commit

Permalink
proxies is possibly None
Browse files Browse the repository at this point in the history
  • Loading branch information
ifduyue committed Aug 3, 2023
1 parent 5c88a34 commit bad665e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions urlfetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,8 @@ def make_connection(conn_type, host, port, timeout, source_address):
scheme = parsed_url["scheme"]
if proxies is None and trust_env:
proxies = PROXIES
if not proxies:
proxies = {}

ignore_hosts = PROXY_IGNORE_HOSTS
if trust_env:
Expand Down

0 comments on commit bad665e

Please sign in to comment.