fix: ruff check error

This commit is contained in:
Novice Lee 2024-12-23 10:45:40 +08:00
parent 3e48f54f4e
commit ed09d39ec9
1 changed files with 1 additions and 3 deletions

View File

@ -249,9 +249,7 @@ class Executor:
# request_args = {k: v for k, v in request_args.items() if v is not None}
try:
response = getattr(ssrf_proxy, self.method)(**request_args)
except ssrf_proxy.MaxRetriesExceededError as e:
raise HttpRequestNodeError(str(e))
except httpx.RequestError as e:
except (ssrf_proxy.MaxRetriesExceededError, httpx.RequestError) as e:
raise HttpRequestNodeError(str(e))
return response