Skip to content

Commit

Permalink
Check if reproducers exist
Browse files Browse the repository at this point in the history
  • Loading branch information
oswalpalash authored Nov 4, 2023
1 parent 85cd8a7 commit f8c621e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ def get_reproducers(bug):
page = requests.get("https://syzkaller.appspot.com" + bug)
soup = BeautifulSoup(page.content, 'html.parser')
# parse last table in page that has class "list_table"
table = soup.find_all('table', class_="list_table")[-1]
try:
table = soup.find_all('table', class_="list_table")[-1]
except IndexError:
print("No reproducers for bug : ",bug)
return
# find td that has text "syz", only one
td = table.find_all('td', text="syz")
for entry in td:
Expand Down

0 comments on commit f8c621e

Please sign in to comment.