浏览代码

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

Signed-off-by: -LAN- <laipz8200@outlook.com>
-LAN- 5 月之前
父节点
当前提交
b8d42cdea7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/core/helper/ssrf_proxy.py

+ 1 - 1
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