Skip to content

Commit

Permalink
Merge pull request #984 from shivdeep-singh-ibm/fix-mkdocs
Browse files Browse the repository at this point in the history
add exception handling in mkdocs hook
  • Loading branch information
touma-I authored Jan 28, 2025
2 parents 61b9d03 + 150a900 commit 5f86475
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/mkdocs_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ def update_markdown_content_updated(markdown: str, replacements: List[Tuple[str,
if len(replacements) > 0:
for text, old_value, new_value in replacements:
log.info(f"Updating Link: text: [{text}], link: {old_value}, updated link: {new_value}")
markdown = update_link(markdown, text, old_value, new_value)
try:
markdown = update_link(markdown, text, old_value, new_value)
except Exception as e:
log.info(f"Failed to update link: link: {old_value}, updated link: {new_value} due to {e}")

return markdown


Expand Down

0 comments on commit 5f86475

Please sign in to comment.