소스 검색

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