Add better output when AXFR fails

This commit is contained in:
Joshua Boniface 2018-11-18 17:34:51 -05:00
parent a421bde679
commit 84b57ccc87
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ class AXFRDaemonInstance(object):
z = dns.zone.from_xfr(dns.query.xfr(dnsmasq_ip, domain, lifetime=5.0)) z = dns.zone.from_xfr(dns.query.xfr(dnsmasq_ip, domain, lifetime=5.0))
records_raw = [z[n].to_text(n) for n in z.nodes.keys()] records_raw = [z[n].to_text(n) for n in z.nodes.keys()]
except OSError as e: except OSError as e:
print(e) print('{} ({})'.format(e, domain))
continue continue
# Fix the formatting because it's useless # Fix the formatting because it's useless