From 8b42801609c82b5745a61a70149a41039973cfa1 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 12 Mar 2012 19:25:39 +0100 Subject: samba_dnsupdate: Raise proper exception when getting unexpected DNS reply. --- source4/scripting/bin/samba_dnsupdate | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/scripting/bin/samba_dnsupdate') diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index fee1a08f4f..076bc328b7 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) -- cgit