Add "badagent" response handling for DDNSProtocolDynDNS2.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 28 Aug 2014 18:47:37 +0000 (20:47 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 28 Aug 2014 18:47:37 +0000 (20:47 +0200)
src/ddns/providers.py

index 151d6a3..4826289 100644 (file)
@@ -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)