mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-08 04:43:00 +08:00
fixup! feat: add temp client for bilibili
fix bug
This commit is contained in:
parent
6851bb5765
commit
98a5ae6b4c
@ -29,7 +29,7 @@ class _BilibiliClient:
|
|||||||
|
|
||||||
async def _refresh_client(self):
|
async def _refresh_client(self):
|
||||||
if (
|
if (
|
||||||
self._client_refresh_time is None
|
getattr(self, "_client_refresh_time", None) is None
|
||||||
or datetime.now() - self._client_refresh_time > self.cookie_expire_time
|
or datetime.now() - self._client_refresh_time > self.cookie_expire_time
|
||||||
or self._http_client is None
|
or self._http_client is None
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user