mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Raise ValueError if Datasette(files=) is a string, refs #1985
This commit is contained in:
parent
2c86774179
commit
50fd94e04f
2 changed files with 10 additions and 1 deletions
|
|
@ -251,6 +251,8 @@ class Datasette:
|
|||
self.config_dir = config_dir
|
||||
self.pdb = pdb
|
||||
self._secret = secret or secrets.token_hex(32)
|
||||
if files is not None and isinstance(files, str):
|
||||
raise ValueError("files= must be a list of paths, not a string")
|
||||
self.files = tuple(files or []) + tuple(immutables or [])
|
||||
if config_dir:
|
||||
db_files = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue