mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(db): close db conn before reinitializing
This commit is contained in:
parent
e461f9925e
commit
e46dc9b34e
@ -37,6 +37,7 @@ class SqliteDatabase:
|
||||
|
||||
def reinitialize(self) -> None:
|
||||
"""Reinitializes the database. Needed after migration."""
|
||||
self.close()
|
||||
self.initialize(self._config, self._logger)
|
||||
|
||||
def close(self) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user