Merge "swift-account-audit: clean up some error formatting"

This commit is contained in:
Zuul 2019-10-16 04:03:02 +00:00 committed by Gerrit Code Review
commit f4fc811862

View File

@ -252,14 +252,14 @@ class Auditor(object):
self.account_not_found += 1 self.account_not_found += 1
consistent = False consistent = False
print(" Bad status GETting account '%s' " print(" Bad status GETting account '%s' "
" from %ss:%ss" % " from %s:%s" %
(account, node['ip'], node['device'])) (account, node['ip'], node['device']))
break break
results = json.loads(resp.read()) results = json.loads(resp.read())
except Exception: except Exception:
self.account_exceptions += 1 self.account_exceptions += 1
consistent = False consistent = False
print(" Exception GETting account '%s' on %ss:%ss" % print(" Exception GETting account '%s' on %s:%s" %
(account, node['ip'], node['device'])) (account, node['ip'], node['device']))
break break
if node_id not in responses: if node_id not in responses: