Commit 80f11ca6 authored by Daniel Salzman's avatar Daniel Salzman

tests: fix confusing error if no SOA in answer section

parent a619a2d9
......@@ -513,7 +513,7 @@ class Server(object):
for t in range(20):
resp = self.dig(zone.name, "SOA", udp=True, tries=1, log_no_sep=True)
if resp.resp.rcode() == 0:
if resp.resp.rcode() == 0 and resp.resp.answer:
soa = str((resp.resp.answer[0]).to_rdataset())
_serial = int(soa.split()[5])
if serial:
......
......@@ -22,6 +22,7 @@ hhash
journal
pkt
process_query
query_module
rrl
rrset
server
......
Markdown is supported
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