diff --git a/cm-cli.py b/cm-cli.py index 0a472c98..ad00a108 100644 --- a/cm-cli.py +++ b/cm-cli.py @@ -1047,18 +1047,16 @@ def save_snapshot( ): cmd_ctx.set_user_directory(user_directory) - if output is None: - print("[bold red]ERROR: missing output path[/bold red]") - raise typer.Exit(code=1) - - if(not output.endswith('.json') and not output.endswith('.yaml')): - print("[bold red]ERROR: output path should be either '.json' or '.yaml' file.[/bold red]") - raise typer.Exit(code=1) + if output is not None: + if(not output.endswith('.json') and not output.endswith('.yaml')): + print("[bold red]ERROR: output path should be either '.json' or '.yaml' file.[/bold red]") + raise typer.Exit(code=1) - dir_path = os.path.dirname(output) - if(dir_path != '' and not os.path.exists(dir_path)): - print(f"[bold red]ERROR: {output} path not exists.[/bold red]") - raise typer.Exit(code=1) + dir_path = os.path.dirname(output) + + if(dir_path != '' and not os.path.exists(dir_path)): + print(f"[bold red]ERROR: {output} path not exists.[/bold red]") + raise typer.Exit(code=1) path = asyncio.run(core.save_snapshot_with_postfix('snapshot', output, not full_snapshot)) print(f"Current snapshot is saved as `{path}`") diff --git a/glob/manager_core.py b/glob/manager_core.py index 3ee4c57f..e9af16bc 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -43,7 +43,7 @@ import manager_downloader from node_package import InstalledNodePackage -version_code = [3, 31, 8] +version_code = [3, 31, 9] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') diff --git a/pyproject.toml b/pyproject.toml index 72fe8cc4..96948d17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-manager" description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI." -version = "3.31.8" +version = "3.31.9" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions", "toml", "uv", "chardet"]