Fix type errors in cli.py and db.py

- Add type annotation for Database.conn to fix context manager errors
- Convert exception objects to str() when raising ClickException
- Handle None return from find_spatialite() with proper error message

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Simon Willison 2025-12-16 16:25:03 -08:00
commit 29842be858
2 changed files with 8 additions and 4 deletions

View file

@ -328,6 +328,7 @@ class Database:
_counts_table_name = "_counts"
use_counts_table = False
conn: sqlite3.Connection
def __init__(
self,