]> git.ipfire.org Git - ddns.git/blobdiff - src/ddns/errors.py
Add exception for HTTP 429 status codes.
[ddns.git] / src / ddns / errors.py
index 58a5ba9beb0e0342d51d21dc7e140c3cbc591483..a8a201751f1111d41c2723681897e1261c467803 100644 (file)
@@ -2,7 +2,7 @@
 ###############################################################################
 #                                                                             #
 # ddns - A dynamic DNS client for IPFire                                      #
-# Copyright (C) 2012 IPFire development team                                  #
+# Copyright (C) 2012-2017 IPFire development team                             #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -161,6 +161,13 @@ class DDNSServiceUnavailableError(DDNSNetworkError):
        reason = N_("Service unavailable")
 
 
+class DDNSTooManyRequests(DDNSError):
+       """
+               Raised when too many requests occured.
+       """
+       reason = N_("Too many requests")
+
+
 class DDNSUpdateError(DDNSError):
        """
                Thrown when an update could not be