mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:31:51 +02:00
Fix lint error and remove extra format()
This commit is contained in:
@@ -540,11 +540,11 @@ def _generate_failed_chall_msg(failed_achalls):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
typ = failed_achalls[0].error.typ
|
typ = failed_achalls[0].error.typ
|
||||||
msg = [
|
msg = ["The following errors were reported by the server:"]
|
||||||
"The following errors were reported by the server:".format(typ)]
|
|
||||||
|
|
||||||
for achall in failed_achalls:
|
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:
|
if typ in _ERROR_HELP:
|
||||||
msg.append("\n\n")
|
msg.append("\n\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user