From: Jelmer Vernooij Date: Mon, 12 Mar 2012 18:25:39 +0000 (+0100) Subject: samba_dnsupdate: Raise proper exception when getting unexpected DNS reply. X-Git-Tag: tdb-1.2.10~230 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b42801609c82b5745a61a70149a41039973cfa1;p=thirdparty%2Fsamba.git samba_dnsupdate: Raise proper exception when getting unexpected DNS reply. --- diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index fee1a08f4fc..076bc328b79 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -142,8 +142,7 @@ class dnsobj(object): elif self.type == 'NS': self.dest = list[2].lower() else: - print "Received unexpected DNS reply of type %s" % self.type - raise + raise Exception("Received unexpected DNS reply of type %s" % self.type) def __str__(self): if d.type == "A": return "%s %s %s" % (self.type, self.name, self.ip)