Browse Source

fix unsafe plan text interpolation

pull/90/head
Joe Williams 9 years ago
parent
commit
22a0563916
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      octodns/provider/base.py

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

@ -56,8 +56,8 @@ class Plan(object):
delete_pcent = self.change_counts['Delete'] / existing_record_count delete_pcent = self.change_counts['Delete'] / existing_record_count
if update_pcent > self.MAX_SAFE_UPDATE_PCENT: if update_pcent > self.MAX_SAFE_UPDATE_PCENT:
raise UnsafePlan('Too many updates, %s is over %s percent'
'(%s/%s)',
raise UnsafePlan('Too many updates, {} is over {} percent'
'({}/{})'.format,
update_pcent, update_pcent,
self.MAX_SAFE_UPDATE_PCENT * 100, self.MAX_SAFE_UPDATE_PCENT * 100,
self.change_counts['Update'], self.change_counts['Update'],


Loading…
Cancel
Save