fix: 修复异步函数没有 await 的问题

This commit is contained in:
amtoaer
2023-11-28 13:55:12 +08:00
parent dc612ec6f1
commit ad977e41d4

View File

@@ -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.")