Quellcode durchsuchen

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

Signed-off-by: -LAN- <laipz8200@outlook.com>
-LAN- vor 1 Jahr
Ursprung
Commit
b8d42cdea7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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]
 STATUS_FORCELIST = [429, 500, 502, 503, 504]
 
 
 
 
-class MaxRetriesExceededError(Exception):
+class MaxRetriesExceededError(ValueError):
     """Raised when the maximum number of retries is exceeded."""
     """Raised when the maximum number of retries is exceeded."""
 
 
     pass
     pass