Skip to content

Commit

Permalink
Fixed config_dir mode, refs #1432
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 13, 2021
1 parent f7d2bcc commit 44699eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasette/app.py
Expand Up @@ -278,7 +278,7 @@ def __init__(
if config_dir and (config_dir / "config.json").exists():
raise StartupError("config.json should be renamed to settings.json")
if config_dir and (config_dir / "settings.json").exists() and not settings:
config = json.loads((config_dir / "settings.json").read_text())
settings = json.loads((config_dir / "settings.json").read_text())
self._settings = dict(DEFAULT_SETTINGS, **(settings or {}))
self.renderers = {} # File extension -> (renderer, can_render) functions
self.version_note = version_note
Expand Down

0 comments on commit 44699eb

Please sign in to comment.