fix(db): close db conn before reinitializing

This commit is contained in:
psychedelicious 2023-12-11 01:06:06 +11:00
parent e461f9925e
commit e46dc9b34e

View File

@ -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: