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:
parent
35a3c35821
commit
79cf72ffc1
|
@ -27,7 +27,8 @@ class OpenScale(Scraper):
|
||||||
db_path = Path(DATABASE_PATH)
|
db_path = Path(DATABASE_PATH)
|
||||||
|
|
||||||
if not db_path.exists():
|
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:
|
with sqlite3.connect(db_path) as conn:
|
||||||
conn.row_factory = sqlite3.Row
|
conn.row_factory = sqlite3.Row
|
||||||
|
|
Loading…
Reference in New Issue
Block a user