From 3740a4ad6f09ab02f65af7c6d75476c73e564e63 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Fri, 12 Apr 2024 11:16:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=80=E5=90=AF=E4=BB=85=E4=B8=80?= =?UTF-8?q?=E5=8F=B0=E8=AE=BE=E7=BD=AE=E7=99=BB=E5=BD=95=20=E9=80=80?= =?UTF-8?q?=E5=87=BA=E5=A4=B1=E8=B4=A5=20(#13007)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng <1304903146@qq.com> --- apps/common/sessions/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/sessions/cache.py b/apps/common/sessions/cache.py index f15ddb6ae..43e064948 100644 --- a/apps/common/sessions/cache.py +++ b/apps/common/sessions/cache.py @@ -39,8 +39,8 @@ class RedisUserSessionManager: self.client.hincrby(self.JMS_SESSION_KEY, session_key, -1) def remove(self, session_key): - self.client.hdel(self.JMS_SESSION_KEY, session_key) try: + self.client.hdel(self.JMS_SESSION_KEY, session_key) session_store = import_module(settings.SESSION_ENGINE).SessionStore(session_key) session_store.delete() except Exception: