From 1d7ca44017717f21c0d0315e236c46e412c765d1 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 31 Mar 2024 02:27:03 -0700 Subject: [PATCH] fix: config data issue --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index fa35e55a9..c447ebac1 100644 --- a/backend/main.py +++ b/backend/main.py @@ -170,7 +170,7 @@ async def get_app_config(): "version": VERSION, "default_locale": ( CONFIG_DATA["ui"]["default_locale"] - if "default_locale" in CONFIG_DATA["ui"] + if "ui" in CONFIG_DATA and "default_locale" in CONFIG_DATA["ui"] else "en-US" ), "images": images_app.state.ENABLED,