mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Ensure db.path is a string before trying to insert into internal database (#1370)
Thanks, @eyeseast
This commit is contained in:
parent
5335f360f4
commit
a6c55afe8c
2 changed files with 15 additions and 1 deletions
|
|
@ -354,7 +354,7 @@ class Datasette:
|
|||
INSERT OR REPLACE INTO databases (database_name, path, is_memory, schema_version)
|
||||
VALUES (?, ?, ?, ?)
|
||||
""",
|
||||
[database_name, db.path, db.is_memory, schema_version],
|
||||
[database_name, str(db.path), db.is_memory, schema_version],
|
||||
block=True,
|
||||
)
|
||||
await populate_schema_tables(internal_db, db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue