Harden Sigil: sigil/errors.py
This commit is contained in:
parent
05e376f5a2
commit
f720814b56
@ -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."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user