Files
Binance_Altcoin_Monitor/backend/app/exceptions.py
T
2026-05-22 13:30:50 +08:00

8 lines
294 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
class BinanceRateLimitedError(Exception):
"""币安 418/429IP 临时封禁。"""
def __init__(self, retry_after_sec: int, path: str = ""):
self.retry_after_sec = retry_after_sec
self.path = path
super().__init__(f"rate limited {retry_after_sec}s on {path}")