The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fixed: robust loading `comfy.settings.json` (#6383)
Dr.Lt.Datac515bdf3710e
diff --git a/app/app_settings.py b/app/app_settings.pyindex efe87adbd..a545df92e 100644--- a/app/app_settings.py+++ b/app/app_settings.py@@ -1,6 +1,7 @@import osimport jsonfrom aiohttp import web+import loggingclass AppSettings():@@ -11,8 +12,12 @@ class AppSettings():file = self.user_manager.get_request_user_filepath(request, "comfy.settings.json")if os.path.isfile(file):- with open(file) as f:- return json.load(f)+ try:+ with open(file) as f:+ return json.load(f)+ except:+ logging.error(f"The user settings file is corrupted: {file}")+ return {}else:return {}