mirror of
https://github.com/simonw/datasette.git
synced 2026-09-28 21:04:08 +02:00
Raise an exception if a "plugins" block exists in metadata.json
This commit is contained in:
parent
35deaabcb1
commit
3d6d1e3050
4 changed files with 31 additions and 3 deletions
|
|
@ -33,6 +33,7 @@ from .utils import (
|
|||
initial_path_for_datasette,
|
||||
pairs_to_nested_config,
|
||||
temporary_docker_directory,
|
||||
fail_if_plugins_in_metadata,
|
||||
value_as_boolean,
|
||||
SpatialiteNotFound,
|
||||
StaticMount,
|
||||
|
|
@ -542,7 +543,7 @@ def serve(
|
|||
|
||||
metadata_data = None
|
||||
if metadata:
|
||||
metadata_data = parse_metadata(metadata.read())
|
||||
metadata_data = fail_if_plugins_in_metadata(parse_metadata(metadata.read()))
|
||||
|
||||
config_data = None
|
||||
if config:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue