Browse Source

fix: config data issue

Timothy J. Baek 1 year ago
parent
commit
1d7ca44017
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/main.py

+ 1 - 1
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,