Fix lint error and remove extra format()

This commit is contained in:
Jacob Hoffman-Andrews
2016-01-05 17:23:32 -08:00
parent 4adc282631
commit 0a04efe40c
+3 -3
View File
@@ -540,11 +540,11 @@ def _generate_failed_chall_msg(failed_achalls):
"""
typ = failed_achalls[0].error.typ
msg = [
"The following errors were reported by the server:".format(typ)]
msg = ["The following errors were reported by the server:"]
for achall in failed_achalls:
msg.append("\n\nDomain: %s\nType: %s\nDetail: %s" % (achall.domain, achall.error.typ, achall.error.detail))
msg.append("\n\nDomain: %s\nType: %s\nDetail: %s" % (
achall.domain, achall.error.typ, achall.error.detail))
if typ in _ERROR_HELP:
msg.append("\n\n")