Harden Sigil: sigil/errors.py

This commit is contained in:
bigpickle 2026-10-05 21:24:35 +08:00
parent 05e376f5a2
commit f720814b56

View File

@ -63,4 +63,8 @@ class CodeExpired(SigilError):
class CodeUsed(SigilError): class CodeUsed(SigilError):
"""One-time code already redeemed. Codes are single use.""" """One-time code already redeemed. Codes are single use."""
class RateLimited(SigilError):
"""A rate limit was exhausted. Distinct so callers can back off rather
than treat it as a credential failure."""