Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: change MaxRetriesExceededError to inherit from ValueError (#11934)

-LAN-b8d42cdea743
diff --git a/api/core/helper/ssrf_proxy.py b/api/core/helper/ssrf_proxy.py
index d8aa8053641..ce15a9667d8 100644
--- a/api/core/helper/ssrf_proxy.py
+++ b/api/core/helper/ssrf_proxy.py
@@ -24,7 +24,7 @@ BACKOFF_FACTOR = 0.5
STATUS_FORCELIST = [429, 500, 502, 503, 504]
-class MaxRetriesExceededError(Exception):
+class MaxRetriesExceededError(ValueError):
"""Raised when the maximum number of retries is exceeded."""
pass