mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-05-11 01:50:22 +08:00
fix: 修复异步函数没有 await 的问题
This commit is contained in:
@@ -98,7 +98,7 @@ async def process() -> None:
|
||||
return
|
||||
if await credential.check_refresh():
|
||||
try:
|
||||
credential.refresh()
|
||||
await credential.refresh()
|
||||
logger.info("Credential refreshed.")
|
||||
except Exception:
|
||||
logger.exception("Failed to refresh credential.")
|
||||
|
||||
Reference in New Issue
Block a user