Skip to content

Don't crash if plugin config section is missing #2

@simonw

Description

@simonw
.../datasette_init/__init__.py", line 9, in inner
    for database_name, db_details in config.items():
AttributeError: 'NoneType' object has no attribute 'items'

This happens if your metadata has no "plugins": {"datasette-init": ... }} section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions