Skip to content

Commit

Permalink
fix: httpx.ProxyError not catch
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Sep 2, 2024
1 parent 9c19421 commit 355c7e3
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 83 deletions.
8 changes: 1 addition & 7 deletions fastapi_cdn_host/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,7 @@ async def fetch(
return
try:
r = await client.get(url)
except (
httpx.ConnectError,
httpx.ReadError,
httpx.ConnectTimeout,
httpx.ReadTimeout,
SSLError,
):
except (httpx.HTTPError, SSLError):
...
else:
if r.status_code < 300:
Expand Down
Loading

0 comments on commit 355c7e3

Please sign in to comment.