Explorar o código

fix: 消息列表文档

chenxuuu %!s(int64=2) %!d(string=hai) anos
pai
achega
d7b96f6494
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      tools/sys_pub.py

+ 4 - 1
tools/sys_pub.py

@@ -133,8 +133,11 @@ for file in file_list:
             line_now += 1
 
 ##################  接口数据提取完毕  ##################
+try:
+    os.remove("../../luatos-wiki/api/sys_pub.md")
+except:
+    pass
 
-os.remove("../../luatos-wiki/api/sys_pub.md")
 doc = open("../../luatos-wiki/api/sys_pub.md", "w+",encoding='utf-8')
 doc.write("# 📮 sys系统消息\n")
 doc.write("\n\n")