diff --git a/src/marvin/settings.py b/src/marvin/settings.py index 63484cfc5..00b19200a 100644 --- a/src/marvin/settings.py +++ b/src/marvin/settings.py @@ -52,6 +52,10 @@ def validate_database_path(self) -> Self: if self.database_path is None: self.__dict__["database_path"] = self.home_path / "marvin.db" + # Handle in-memory database + if str(self.database_path) == ":memory:": + return self + # Convert to Path if string self.__dict__["database_path"] = Path(self.database_path)