Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

User missing (#7439)

Laurent Erignoux2b71aab29903
diff --git a/app/app_settings.py b/app/app_settings.py
index a545df92e..c7ac73bf6 100644
--- a/app/app_settings.py
+++ b/app/app_settings.py
@@ -9,8 +9,14 @@ class AppSettings():
self.user_manager = user_manager
def get_settings(self, request):
- file = self.user_manager.get_request_user_filepath(
- request, "comfy.settings.json")
+ try:
+ file = self.user_manager.get_request_user_filepath(
+ request,
+ "comfy.settings.json"
+ )
+ except KeyError as e:
+ logging.error("User settings not found.")
+ raise web.HTTPUnauthorized() from e
if os.path.isfile(file):
try:
with open(file) as f: