Skip to content

Commit

Permalink
DeprecationWarning: The 'warn' method is deprecated, use 'warning' in…
Browse files Browse the repository at this point in the history
…stead
  • Loading branch information
pbiering committed Jun 9, 2024
1 parent ce32134 commit e8c092b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radicale/auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e8c092b

Please sign in to comment.