X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fddns%2Ferrors.py;fp=src%2Fddns%2Ferrors.py;h=56ab97459942953860827d6a7b9a4140d5513bbe;hb=f2d52251e5f75b8762375cf081ff1c07d96ec6be;hp=a8a201751f1111d41c2723681897e1261c467803;hpb=f1c73c2cb37c2c75629a4466de3609d9e9864bbf;p=people%2Fstevee%2Fddns.git diff --git a/src/ddns/errors.py b/src/ddns/errors.py index a8a2017..56ab974 100644 --- a/src/ddns/errors.py +++ b/src/ddns/errors.py @@ -27,6 +27,7 @@ class DDNSError(Exception): raised by DDNS. """ reason = N_("Error") + genre = "failure" def __init__(self, message=None): self.message = message @@ -166,6 +167,7 @@ class DDNSTooManyRequests(DDNSError): Raised when too many requests occured. """ reason = N_("Too many requests") + genre = "rate-limited" class DDNSUpdateError(DDNSError):