From ed09d39ec9e091d1b1f3f036cf7f760f69731cdf Mon Sep 17 00:00:00 2001 From: Novice Lee Date: Mon, 23 Dec 2024 10:45:40 +0800 Subject: [PATCH] fix: ruff check error --- api/core/workflow/nodes/http_request/executor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/core/workflow/nodes/http_request/executor.py b/api/core/workflow/nodes/http_request/executor.py index 038197317c..3b7e193319 100644 --- a/api/core/workflow/nodes/http_request/executor.py +++ b/api/core/workflow/nodes/http_request/executor.py @@ -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