]> git.ipfire.org Git - oddments/ddns.git/blobdiff - src/ddns/system.py
Add exception for HTTP 429 status codes.
[oddments/ddns.git] / src / ddns / system.py
index c268ba5cbae57dbbdd3aa1e1023ab96ca0cf41b1..67ea553b434bdcb7c96989328ea56422fe711973 100644 (file)
@@ -194,6 +194,10 @@ class DDNSSystem(object):
                        elif e.code == 404:
                                raise DDNSNotFound(e.reason)
 
+                       # 429 - Too Many Requests
+                       elif e.code == 429:
+                               raise DDNSTooManyRequests(e.reason)
+
                        # 500 - Internal Server Error
                        elif e.code == 500:
                                raise DDNSInternalServerError(e.reason)