database: minor fallback fix

Fallback if not using the default path and the database has not been created.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan committed 2022-10-14 19:25:47 -04:00
1 parent 2603cc2e8f
commit fb679aa056
1 file changed
+1 -1
+1 -1
View File
@@ -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"