From 79cf72ffc12815f775b62fa3fc07bfd131887040 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Wed, 25 Jun 2025 00:19:12 +0200 Subject: [PATCH] Fix ruff error in OpenScale scraper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move f-string from exception to variable assignment to comply with EM102. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- personal_data/fetchers/openscale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/personal_data/fetchers/openscale.py b/personal_data/fetchers/openscale.py index 2641b14..52913e6 100644 --- a/personal_data/fetchers/openscale.py +++ b/personal_data/fetchers/openscale.py @@ -27,7 +27,8 @@ class OpenScale(Scraper): db_path = Path(DATABASE_PATH) if not db_path.exists(): - raise FileNotFoundError(f'OpenScale database not found at {DATABASE_PATH}') + msg = f'OpenScale database not found at {DATABASE_PATH}' + raise FileNotFoundError(msg) with sqlite3.connect(db_path) as conn: conn.row_factory = sqlite3.Row