diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 80d9613c..1a931ea0 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,4 +1,3 @@ # These are supported funding model platforms ko_fi: easydiffusion -patreon: easydiffusion diff --git a/ui/easydiffusion/model_manager.py b/ui/easydiffusion/model_manager.py index f6e1e2d0..e6ba997a 100644 --- a/ui/easydiffusion/model_manager.py +++ b/ui/easydiffusion/model_manager.py @@ -282,9 +282,11 @@ def make_model_folders(): help_file_name = f"Place your {model_type} model files here.txt" help_file_contents = f'Supported extensions: {" or ".join(MODEL_EXTENSIONS.get(model_type))}' - - with open(os.path.join(model_dir_path, help_file_name), "w", encoding="utf-8") as f: - f.write(help_file_contents) + try: + with open(os.path.join(model_dir_path, help_file_name), "w", encoding="utf-8") as f: + f.write(help_file_contents) + except Exception as e: + log.exception(e) def is_malicious_model(file_path): diff --git a/ui/index.html b/ui/index.html index a8c6685f..a50c995d 100644 --- a/ui/index.html +++ b/ui/index.html @@ -268,7 +268,7 @@ - Click to learn more about samplers + Click to learn more about samplers