From e8c092bd2d532e068278be51668328e9704631fa Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sun, 9 Jun 2024 08:32:45 +0200 Subject: [PATCH] DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead --- radicale/auth/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/auth/__init__.py b/radicale/auth/__init__.py index dfc5f5646..15d91ec5f 100644 --- a/radicale/auth/__init__.py +++ b/radicale/auth/__init__.py @@ -42,9 +42,9 @@ 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)