mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 10:56:52 +08:00
fix: change MaxRetriesExceededError to inherit from ValueError (#11934)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user