Skip to content

More useful error message if enable_load_extension is not available #1979

@simonw

Description

@simonw

I get this from:

datasette --load-extension spatialite --get /-/versions.json
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/datasette/app.py", line 614, in _prepare_connection
    conn.enable_load_extension(True)
AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'

It would be useful if Datasette caught this error and output something more friendly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions