Skip to content

Commit

Permalink
fix: empty records
Browse files Browse the repository at this point in the history
  • Loading branch information
jychp committed Jul 24, 2023
1 parent 2473c10 commit 8802382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartography/intel/gandi/zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def transform(domains: List[Dict[str, Any]]) -> Tuple[List[Dict[str, Any]], List
})
if "gandilivedns" in dom['services']:
# Extract records
for rec in dom['records']:
for rec in dom.get('records', []):
# No value
if len(rec['rrset_values']) == 0:
records.append(rec)
Expand Down

0 comments on commit 8802382

Please sign in to comment.