Only apply handler when record is not empy
This commit is contained in:
parent
badc87f28d
commit
7c87f9514a
1 changed files with 3 additions and 1 deletions
2
main.py
2
main.py
|
@ -251,4 +251,6 @@ records = collections.defaultdict(list)
|
||||||
|
|
||||||
for zone in zones:
|
for zone in zones:
|
||||||
for record in zone:
|
for record in zone:
|
||||||
|
if zone[record]:
|
||||||
|
# only apply handler if record in not `None` or `[]`
|
||||||
HANDLERS[record](zone, records)
|
HANDLERS[record](zone, records)
|
||||||
|
|
Loading…
Reference in a new issue