Skip to content

Commit d6a48a3

Browse files
authored
Merge pull request #26 from tweak-wtf/bugfix/occasional-plugin-keyerror
Occasional KeyError fix
2 parents d291464 + 4fc30ff commit d6a48a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/ayon_comfyui/hooks/pre_launch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ def git_clone(url: str, dest: Path, tag: str = "") -> git.Repo:
252252
plugin_name = Path(plugin["url"]).stem
253253
progress_callback(f"Setting up Plugin: {plugin_name}")
254254
plugin_root = self.comfy_root / "custom_nodes" / plugin_name
255-
plugin.update({"root": plugin_root})
256255
git_clone(
257256
url=plugin["url"],
258257
dest=plugin_root,
@@ -322,7 +321,7 @@ def run_server(self):
322321
launch_args.append(self.uv_path)
323322
if self.plugins:
324323
launch_args.append("-plugins")
325-
plugin_names = [plugin["root"].name for plugin in self.plugins]
324+
plugin_names = [Path(plugin["url"]).stem for plugin in self.plugins]
326325
launch_args.append(",".join(plugin_names))
327326
if self.extra_dependencies:
328327
launch_args.append("-extraDependencies")

0 commit comments

Comments
 (0)