mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Also remove default_cache_ttl_hashed setting, refs #1661
This commit is contained in:
parent
8658c66438
commit
9979dcd07f
5 changed files with 16 additions and 35 deletions
|
|
@ -57,10 +57,10 @@ class Config(click.ParamType):
|
|||
return
|
||||
name, value = config.split(":", 1)
|
||||
if name not in DEFAULT_SETTINGS:
|
||||
if name in OBSOLETE_SETTINGS:
|
||||
msg = OBSOLETE_SETTINGS[name].help
|
||||
else:
|
||||
msg = f"{name} is not a valid option (--help-settings to see all)"
|
||||
msg = (
|
||||
OBSOLETE_SETTINGS.get(name)
|
||||
or f"{name} is not a valid option (--help-settings to see all)"
|
||||
)
|
||||
self.fail(
|
||||
msg,
|
||||
param,
|
||||
|
|
@ -94,10 +94,10 @@ class Setting(CompositeParamType):
|
|||
def convert(self, config, param, ctx):
|
||||
name, value = config
|
||||
if name not in DEFAULT_SETTINGS:
|
||||
if name in OBSOLETE_SETTINGS:
|
||||
msg = OBSOLETE_SETTINGS[name].help
|
||||
else:
|
||||
msg = f"{name} is not a valid option (--help-settings to see all)"
|
||||
msg = (
|
||||
OBSOLETE_SETTINGS.get(name)
|
||||
or f"{name} is not a valid option (--help-settings to see all)"
|
||||
)
|
||||
self.fail(
|
||||
msg,
|
||||
param,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue