diff --git a/__init__.py b/__init__.py index a983584..91f63ba 100644 --- a/__init__.py +++ b/__init__.py @@ -7,7 +7,7 @@ import importlib -version_code = [1, 2, 1] +version_code = [1, 2, 2] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') print(f"### Loading: ComfyUI-Inspire-Pack ({version_str})") diff --git a/inspire/prompt_support.py b/inspire/prompt_support.py index ce0ec78..dbe10f6 100644 --- a/inspire/prompt_support.py +++ b/inspire/prompt_support.py @@ -38,7 +38,7 @@ with open(pb_yaml_path, 'r', encoding="utf-8") as f: prompt_builder_preset = yaml.load(f, Loader=yaml.FullLoader) except Exception as e: - print(f"[Inspire Pack] Failed to load 'prompt-builder.yaml'") + print(f"[Inspire Pack] Failed to load 'prompt-builder.yaml'\nNOTE: Only files with UTF-8 encoding are supported.") class LoadPromptsFromDir: @@ -115,7 +115,7 @@ def doit(prompt_dir, reload=False): else: print(f"[WARN] LoadPromptsFromDir: invalid prompt format in '{file_name}'") except Exception as e: - print(f"[ERROR] LoadPromptsFromDir: an error occurred while processing '{file_name}': {str(e)}") + print(f"[ERROR] LoadPromptsFromDir: an error occurred while processing '{file_name}': {str(e)}\nNOTE: Only files with UTF-8 encoding are supported.") return (prompts, ) @@ -199,7 +199,7 @@ def doit(prompt_file, text_data_opt=None, reload=False): else: print(f"[WARN] LoadPromptsFromFile: invalid prompt format in '{prompt_file}'") except Exception as e: - print(f"[ERROR] LoadPromptsFromFile: an error occurred while processing '{prompt_file}': {str(e)}") + print(f"[ERROR] LoadPromptsFromFile: an error occurred while processing '{prompt_file}': {str(e)}\nNOTE: Only files with UTF-8 encoding are supported.") return (prompts, ) @@ -262,7 +262,7 @@ def doit(prompt_file, index, text_data_opt=None): else: print(f"[WARN] LoadSinglePromptFromFile: invalid prompt format in '{prompt_file}'") except Exception as e: - print(f"[ERROR] LoadSinglePromptFromFile: an error occurred while processing '{prompt_file}': {str(e)}") + print(f"[ERROR] LoadSinglePromptFromFile: an error occurred while processing '{prompt_file}': {str(e)}\nNOTE: Only files with UTF-8 encoding are supported.") return (prompts, ) diff --git a/pyproject.toml b/pyproject.toml index e6c8435..edf7a41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-inspire-pack" description = "This extension provides various nodes to support Lora Block Weight and the Impact Pack. Provides many easily applicable regional features and applications for Variation Seed." -version = "1.2.1" +version = "1.2.2" license = { file = "LICENSE" } dependencies = ["matplotlib", "cachetools"]