summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-12 19:25:39 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-13 13:07:03 +0100
commit8b42801609c82b5745a61a70149a41039973cfa1 (patch)
treea9af8b23e1efcca61b7a39bb32e1b0280bb49920 /source4/scripting
parentd87a24fe171139d2b3bab12bcc9266318e22107b (diff)
downloadsamba-8b42801609c82b5745a61a70149a41039973cfa1.tar.gz
samba-8b42801609c82b5745a61a70149a41039973cfa1.tar.bz2
samba-8b42801609c82b5745a61a70149a41039973cfa1.zip
samba_dnsupdate: Raise proper exception when getting unexpected DNS reply.
Diffstat (limited to 'source4/scripting')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate3
1 files changed, 1 insertions, 2 deletions
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)