From fb679aa05607f01fdee5911b5db54921726e267d Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Fri, 14 Oct 2022 19:25:47 -0400 Subject: [PATCH] database: minor fallback fix Fallback if not using the default path and the database has not been created. Signed-off-by: Eric Callahan --- moonraker/components/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/database.py b/moonraker/components/database.py index 9ad8ca5..e8a32e5 100644 --- a/moonraker/components/database.py +++ b/moonraker/components/database.py @@ -83,7 +83,7 @@ class MoonrakerDatabase: db_path = pathlib.Path(app_args["data_path"]).joinpath("database") if ( app_args["is_default_data_path"] and - not (dep_path is None and db_path.exists()) + not db_path.joinpath("data.mdb").exists() ): # Allow configured DB fallback dep_path = dep_path or "~/.moonraker_database"