]> git.ipfire.org Git - ddns.git/commitdiff
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 151d6a3852e8e344f65632417380759c66fafc0b..48262894e31d88e07e2dc3f631a807672285b364 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)