Commit 02de1b1d authored by Wallen姚文辉's avatar Wallen姚文辉

完善报错情况

parent cb0ac646
......@@ -96,7 +96,10 @@ def find_():
"https://test-code-coverage.galaxy-immi.com/" + key + "/" + path + "/index.html"
)
soup = BeautifulSoup(res.text, "html.parser")
m = soup.find("tbody").find_all("tr")
try:
m = soup.find("tbody").find_all("tr")
except:
return jsonify({"code": 500, "message": "请确认输入内容"}), 500
result = []
for i in m:
f = i.find_all("td")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment