Browse Source

Use if, else rather than try, except KeyError

pull/384/head
Ross McFarland 6 years ago
parent
commit
74048bf974
No known key found for this signature in database GPG Key ID: 61C10C4FC8FE4A89
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      octodns/provider/route53.py

+ 2
- 2
octodns/provider/route53.py View File

@ -564,9 +564,9 @@ def _mod_keyer(mod):
if rrset.get('GeoLocation', False):
unique_id = rrset['SetIdentifier']
else:
try:
if 'SetIdentifier' in rrset:
unique_id = '{}-{}'.format(rrset['Name'], rrset['SetIdentifier'])
except KeyError:
else:
unique_id = rrset['Name']
# Prioritise within the action_priority, ensuring targets come first.


Loading…
Cancel
Save