Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 8, 2024
1 parent 59f00d9 commit d0babf5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,10 @@ async def _request(
with suppress(LookupError):
proxy, proxy_auth = get_env_proxy_for_url(url)

if proxy and not 'http' in proxy.scheme:
raise ValueError('aiohttp works with http(s) proxy only currently.')
if proxy and not "http" in proxy.scheme:
raise ValueError(
"aiohttp works with http(s) proxy only currently."
)

req = self._request_class(
method,
Expand Down

0 comments on commit d0babf5

Please sign in to comment.