Skip to content

Commit

Permalink
final pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbraucker committed Jun 4, 2020
1 parent aa36088 commit a4b323f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lexicon/providers/dynu.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _delete_record(self, identifier=None, rtype=None, name=None, content=None):
LOGGER.debug('delete_record: %s', record_id)
except requests.exceptions.HTTPError as error:
if error.response.status_code == 501:
LOGGER.info("delete_record: {0} does not exist".format(record_id))
LOGGER.info("delete_record: %s does not exist", record_id)
continue
raise error

Expand Down Expand Up @@ -269,8 +269,7 @@ def _to_dynu_record(self, rtype, name, content):
'weight': cnt_split[1],
'port': cnt_split[2],
'host': cnt_split[3]
}
),
}),
'TXT': (lambda: {'textData': content}),
}.get(rtype, lambda: {})())
return output

0 comments on commit a4b323f

Please sign in to comment.