fix: kingclient logout不抛出异常只记录日志
This commit is contained in:
parent
f1e1ae5dc6
commit
bf3b61413a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue