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: