瀏覽代碼

fix: 消息列表文档

chenxuuu 2 年之前
父節點
當前提交
d7b96f6494
共有 1 個文件被更改,包括 4 次插入1 次删除
  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")