Only apply handler when record is not empy

master
otthorn 3 years ago
parent badc87f28d
commit 7c87f9514a

@ -251,4 +251,6 @@ records = collections.defaultdict(list)
for zone in zones:
for record in zone:
HANDLERS[record](zone, records)
if zone[record]:
# only apply handler if record in not `None` or `[]`
HANDLERS[record](zone, records)

Loading…
Cancel
Save