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 2022-10-14 19:25:47 -04:00
parent 2603cc2e8f
commit fb679aa056
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

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"