-
-
Notifications
You must be signed in to change notification settings - Fork 813
Closed
Labels
Description
Currently suggests an assert, and that gives you an ugly traceback:
datasette/docs/plugin_hooks.rst
Lines 964 to 973 in 6fede23
| Here is an example that validates required plugin configuration. The server will fail to start and show an error if the validation check fails: | |
| .. code-block:: python | |
| @hookimpl | |
| def startup(datasette): | |
| config = datasette.plugin_config("my-plugin") or {} | |
| assert ( | |
| "required-setting" in config | |
| ), "my-plugin requires setting required-setting" |
Reactions are currently unavailable