diff options
author | cumul0529 <gg6123@naver.com> | 2020-02-23 19:46:41 +0300 |
---|---|---|
committer | cumul0529 <gg6123@naver.com> | 2020-02-23 19:47:12 +0300 |
commit | c3cfd412c91cfdc2d0ba95ad4c3751324bf8b132 (patch) | |
tree | b490a49f8eab744e142dbaf99eaceb452e944e68 | |
parent | 0b21e716cabba503e4ec7ce7e722e93a319f361f (diff) |
Relpace deprecated `logger.warn()` with `logger.warning()`
-rw-r--r-- | certbot-nginx/certbot_nginx/_internal/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/certbot-nginx/certbot_nginx/_internal/parser.py b/certbot-nginx/certbot_nginx/_internal/parser.py index 72d4d38de..0c1151826 100644 --- a/certbot-nginx/certbot_nginx/_internal/parser.py +++ b/certbot-nginx/certbot_nginx/_internal/parser.py @@ -424,8 +424,8 @@ def _parse_ssl_options(ssl_options): except IOError: logger.warning("Missing NGINX TLS options file: %s", ssl_options) except UnicodeDecodeError: - logger.warn("Could not read file: %s due to invalid character. " - "Only UTF-8 encoding is supported.", ssl_options) + logger.warning("Could not read file: %s due to invalid character. " + "Only UTF-8 encoding is supported.", ssl_options) except pyparsing.ParseBaseException as err: logger.debug("Could not parse file: %s due to %s", ssl_options, err) return [] |