mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
This commit is contained in:
parent
ce32134452
commit
e8c092bd2d
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +42,9 @@ INTERNAL_TYPES: Sequence[str] = ("none", "remote_user", "http_x_remote_user",
|
|||
def load(configuration: "config.Configuration") -> "BaseAuth":
|
||||
"""Load the authentication module chosen in configuration."""
|
||||
if configuration.get("auth", "type") == "none":
|
||||
logger.warn("No user authentication is selected: '[auth] type=none' (insecure)")
|
||||
logger.warning("No user authentication is selected: '[auth] type=none' (insecure)")
|
||||
if configuration.get("auth", "type") == "denyall":
|
||||
logger.warn("All access is blocked by: '[auth] type=denyall'")
|
||||
logger.warning("All access is blocked by: '[auth] type=denyall'")
|
||||
return utils.load_plugin(INTERNAL_TYPES, "auth", "Auth", BaseAuth,
|
||||
configuration)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue