Commit 81cb8c96 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Exception when no nameserver exists for a domain

parent 863c156d
......@@ -98,7 +98,7 @@ def header(tree, domain, origin=None):
if not filter(lambda ns: ns.domain[0] == domain and ns.primary[0] == 'yes',
tree._host_._interface_._nameserver_):
return None
raise Exception("No nameserver defined for %s" % domain)
result = util.StringArray()
if origin:
result += "$ORIGIN %s." % origin
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment