upgrade pylint (#10121)

we need this for https://github.com/certbot/certbot/issues/10045
This commit is contained in:
Brad Warren
2025-01-07 09:43:14 -08:00
committed by GitHub
parent 985457e57b
commit 9f9a1df85e
6 changed files with 45 additions and 40 deletions
+2 -1
View File
@@ -280,7 +280,8 @@ def _handle_identical_cert_request(config: configuration.NamespaceConfig,
if config.verb == "run":
keep_opt = "Attempt to reinstall this existing certificate"
elif config.verb == "certonly":
else:
assert config.verb == "certonly", "Unexpected Certbot subcommand"
keep_opt = "Keep the existing certificate for now"
choices = [keep_opt,
"Renew & replace the certificate (may be subject to CA rate limits)"]
+4
View File
@@ -407,7 +407,11 @@ def get_os_info_ua() -> str:
:returns: os_ua
:rtype: `str`
"""
# distro.name returns an empty string if one cannot be determined. see
# https://github.com/python-distro/distro/blob/3bd19e61fcb7f8d2bf3d45d9e40d69c92e05d241/src/distro/distro.py#L883
os_info = ""
if _USE_DISTRO:
os_info = distro.name(pretty=True)