]> git.ipfire.org Git - oddments/ddns.git/blobdiff - src/ddns/providers.py
Add "badagent" response handling for DDNSProtocolDynDNS2.
[oddments/ddns.git] / src / ddns / providers.py
index 766ce641974c61cd0660872f4df79ac2eaef2036..48262894e31d88e07e2dc3f631a807672285b364 100644 (file)
@@ -214,7 +214,7 @@ class DDNSProtocolDynDNS2(object):
                # Handle error codes.
                if output == "badauth":
                        raise DDNSAuthenticationError
-               elif output == "aduse":
+               elif output == "abuse":
                        raise DDNSAbuseError
                elif output == "notfqdn":
                        raise DDNSRequestError(_("No valid FQDN was given."))
@@ -224,6 +224,8 @@ class DDNSProtocolDynDNS2(object):
                        raise DDNSInternalServerError
                elif output == "dnserr":
                        raise DDNSInternalServerError(_("DNS error encountered."))
+               elif output == "badagent":
+                       raise DDNSBlockedError
 
                # If we got here, some other update error happened.
                raise DDNSUpdateError(_("Server response: %s") % output)