Browse Source

changed try except to elif and else, updated log line to octodns standard

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

+ 6
- 6
octodns/processor/filter.py View File

@ -233,13 +233,13 @@ class _ValueBaseFilter(_FilterProcessor):
values = []
if hasattr(record, 'values'):
values = [value.rdata_text for value in record.values]
elif record.value is not None:
values = [record.value.rdata_text]
else:
try:
values = [record.value.rdata_text]
except AttributeError:
self.log.warning(
f"Value processor ignoring record, value is NoneType: {record.fqdn}"
)
self.log.warning(
'value for %s is NoneType, ignoring', record.fqdn
)
if any(value in self.exact for value in values):
self.matches(zone, record)
continue


Loading…
Cancel
Save