mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:04:31 +02:00
upgrade pylint (#10121)
we need this for https://github.com/certbot/certbot/issues/10045
This commit is contained in:
@@ -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)"]
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user