Skip to content

Commit

Permalink
fix: 文档识别脚本死循环的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxuuu committed Feb 6, 2023
1 parent c2deaa3 commit c6ed3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/make_doc_file.py
Expand Up @@ -14,7 +14,7 @@
print("getting "+bsp["name"]+"...")
res = ""
#有时候获取不到完整的数据,报错的页面就是html
while len(res) < 200 or res.find("</title>"):
while len(res) < 200 or res.find("</title>") != -1:
res = requests.get(bsp["url"]).text
print(res)
bsp["url"] = res
Expand Down

0 comments on commit c6ed3db

Please sign in to comment.