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
4
main.py
4
main.py
|
@ -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…
Reference in a new issue