1
0

Fix ruff error in OpenScale scraper

Move f-string from exception to variable assignment to comply with EM102.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jon Michael Aanes 2025-06-25 00:19:12 +02:00
parent 35a3c35821
commit 79cf72ffc1

View File

@ -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