fix: !version 命令获取最新版本失败时导致命令失败

This commit is contained in:
RockChinQ
2024-02-19 21:47:51 +08:00
parent 0bf85fb644
commit 082731ba32
2 changed files with 1 additions and 28 deletions

View File

@@ -16,7 +16,7 @@ class VersionCommand(operator.CommandOperator):
self,
context: entities.ExecuteContext
) -> typing.AsyncGenerator[entities.CommandReturn, None]:
reply_str = f"当前版本: \n{await self.ap.ver_mgr.get_current_version_info()}"
reply_str = f"当前版本: \n{self.ap.ver_mgr.get_current_version()}"
try:
if await self.ap.ver_mgr.is_new_version_available():