Browse Source

added patch so when a record has an empty value it does not crash

pull/1246/head
Mathurin Gagnon 8 months ago
parent
commit
b913b7ed95
No known key found for this signature in database GPG Key ID: C2FA638E0A56DB06
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      octodns/processor/filter.py

+ 5
- 2
octodns/processor/filter.py View File

@ -234,8 +234,10 @@ class _ValueBaseFilter(_FilterProcessor):
if hasattr(record, 'values'):
values = [value.rdata_text for value in record.values]
else:
values = [record.value.rdata_text]
try:
values = [record.value.rdata_text]
except AttributeError:
self.log.warning(f"Record value is NoneType: {record.fqdn}")
if any(value in self.exact for value in values):
self.matches(zone, record)
continue
@ -317,6 +319,7 @@ class ValueRejectlistFilter(_ValueBaseFilter, RejectsMixin):
'''
def __init__(self, name, rejectlist):
self.log = getLogger(f'ValueRejectlistFilter[{name}]')
super().__init__(name, rejectlist)


Loading…
Cancel
Save