Skip to content

Commit

Permalink
Make python coverage test more resilient (#2222)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Nov 15, 2023
1 parent fe642f1 commit 52ea9b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check_python_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ def parse(type, names):
if (extras_values.name == "ul"):
for li in extras_values.findChildren("li", recursive=False):
item = html_to_markdown(url, li)
method_text.append(get_param_details(item))
try:
method_text.append(get_param_details(item))
except ValueError:
print(f"WARNING: Failed to extract value for \"{item}\" from {url}#{id}")
# if values are not a list
else:
item = html_to_markdown(url, extras_values)
Expand Down

0 comments on commit 52ea9b1

Please sign in to comment.