fix: 修复插件指令结果显示异常的问题

This commit is contained in:
Soulter
2023-05-11 22:01:57 +08:00
parent 6627b2e1e5
commit 425936872d
+2 -2
View File
@@ -67,13 +67,13 @@ class Command:
if l[1] == "i":
try:
Repo.clone_from(l[2],to_path=ppath,branch='master')
return False, "插件拉取成功~", "plugin"
return True, "插件拉取成功~", "plugin"
except BaseException as e:
return False, f"拉取插件失败,原因: {str(e)}", "plugin"
elif l[1] == "d":
try:
os.remove(os.path.join(ppath, l[2]))
return False, "插件卸载成功~", "plugin"
return True, "插件卸载成功~", "plugin"
except BaseException as e:
return False, f"卸载插件失败,原因: {str(e)}", "plugin"