Kaynağa Gözat

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

Signed-off-by: -LAN- <laipz8200@outlook.com>
tags/0.14.2
-LAN- 10 ay önce
ebeveyn
işleme
b8d42cdea7
No account linked to committer's email address
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      api/core/helper/ssrf_proxy.py

+ 1
- 1
api/core/helper/ssrf_proxy.py Dosyayı Görüntüle

@@ -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

Loading…
İptal
Kaydet