fix(api): Fix resetting sys var causing internal server error

This commit is contained in:
QuantumGhost
2025-06-27 10:32:45 +08:00
parent 9defdbe291
commit 0d98f23549
12 changed files with 396 additions and 138 deletions

View File

@ -333,7 +333,7 @@ class Executor:
try:
response = getattr(ssrf_proxy, self.method.lower())(**request_args)
except (ssrf_proxy.MaxRetriesExceededError, httpx.RequestError) as e:
raise HttpRequestNodeError(str(e))
raise HttpRequestNodeError(str(e)) from e
# FIXME: fix type ignore, this maybe httpx type issue
return response # type: ignore