Skip to content

Commit

Permalink
fix: 修复异步函数没有 await 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoaer committed Nov 28, 2023
1 parent dc612ec commit ad977e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit ad977e4

Please sign in to comment.