From 78dea7417fed34ba96efbd8e6d4f1f87c3e998f0 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 3 May 2026 10:07:43 +0200 Subject: fix: narrow exception clause to ValueError/OSError, add corrupt frontmatter test --- core/article_scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/article_scanner.py b/core/article_scanner.py index ea6579a..bb69a26 100644 --- a/core/article_scanner.py +++ b/core/article_scanner.py @@ -20,7 +20,7 @@ def scan_articles(blog_root: Path) -> list[Article]: translation_path = by_slug.get((other_lang, slug)) try: fm, _ = parse_frontmatter(path) - except (ValueError, Exception): + except (ValueError, OSError): fm = {} articles.append(Article( slug=slug, -- cgit v1.2.3