Read a Markdown file safely, returning empty string on error.
(path: Path)
| 128 | |
| 129 | |
| 130 | def _read_md(path: Path) -> str: |
| 131 | """Read a Markdown file safely, returning empty string on error.""" |
| 132 | try: |
| 133 | return path.read_text(encoding="utf-8") |
| 134 | except OSError: |
| 135 | return "" |
| 136 | |
| 137 | |
| 138 | def _all_wiki_pages(wiki: Path) -> dict[str, Path]: |
no outgoing calls
no test coverage detected