Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcumul0529 <gg6123@naver.com>2020-02-23 19:46:41 +0300
committercumul0529 <gg6123@naver.com>2020-02-23 19:47:12 +0300
commitc3cfd412c91cfdc2d0ba95ad4c3751324bf8b132 (patch)
treeb490a49f8eab744e142dbaf99eaceb452e944e68
parent0b21e716cabba503e4ec7ce7e722e93a319f361f (diff)
Relpace deprecated `logger.warn()` with `logger.warning()`
-rw-r--r--certbot-nginx/certbot_nginx/_internal/parser.py4
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 []