mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:00:44 +02:00
Relpace deprecated logger.warn() with logger.warning()
This commit is contained in:
@@ -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 []
|
||||
|
||||
Reference in New Issue
Block a user