Skip to content

Commit

Permalink
Update build_python_package.py
Browse files Browse the repository at this point in the history
Small fixes.
  • Loading branch information
reyammer authored Oct 17, 2024
1 parent c32142e commit 17ab315
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/scripts/build_python_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,15 +376,15 @@ def check_markdown_has_only_absolute_links(markdown_path: Path) -> None:
except requests.RequestException as e:
invalid_links.append(f"Error accessing link: {link} ({e})")
else:
invalid_links.append(f"Relative link found: {link}")
invalid_links.append(f"Non-https or relative link found: {link}")

if invalid_links:
print(f"Issues found in {markdown_path}:")
if len(invalid_links) > 0:
print(f"Invalid links found in {markdown_path}:")
for error in invalid_links:
print(error)
sys.exit(1)

print("Markdown link check complete.")
print("Markdown links check complete.")


if __name__ == "__main__":
Expand Down

0 comments on commit 17ab315

Please sign in to comment.