Only apply handler when record is not empy

This commit is contained in:
otthorn 2021-04-05 17:58:57 +02:00
parent badc87f28d
commit 7c87f9514a

View file

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