From 79d2a389d883f21990bf55ecb2718ac7e4006ea3 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 8 May 2024 11:24:22 -0400 Subject: [PATCH] chore: Update warn to warning py3.11 deprecation --- slowapi/extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slowapi/extension.py b/slowapi/extension.py index a3ae774..6cbb681 100644 --- a/slowapi/extension.py +++ b/slowapi/extension.py @@ -632,7 +632,7 @@ def _check_request_limit( if isinstance(e, RateLimitExceeded): raise if self._in_memory_fallback_enabled and not self._storage_dead: - self.logger.warn( + self.logger.warning( "Rate limit storage unreachable - falling back to" " in-memory storage" )