From bf3b61413afc70aa22dbbb2e01a2cb5f5c520c26 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 Apr 2024 12:50:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20kingclient=20logout=E4=B8=8D=E6=8A=9B?= =?UTF-8?q?=E5=87=BA=E5=BC=82=E5=B8=B8=E5=8F=AA=E8=AE=B0=E5=BD=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/third/king/k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/third/king/k.py b/apps/third/king/k.py index 4ee44e6e..a1ce1de3 100644 --- a/apps/third/king/k.py +++ b/apps/third/king/k.py @@ -43,7 +43,7 @@ class KingClient(HandleLogMixin): old_token = cache.get('king_token', '') cache.set('king_token', res['Authorization'], timeout=None) if old_token: - _, res = self.request(**kapis['logout'], authorization=old_token) + self.request(**kapis['logout'], authorization=old_token, raise_exception=False) def request(self, url: str, method: str = 'post', params=dict(), json=dict(), timeout=20, raise_exception=True, authorization=''): if not self.king_enabled: