Skip to content

Commit

Permalink
Fix issue with custom nodes that don't have required inputs #266
Browse files Browse the repository at this point in the history
  • Loading branch information
Acly committed Dec 23, 2023
1 parent 09e5ac8 commit 3c3bd77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ai_diffusion/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Generative AI plugin for Krita using Stable Diffusion"""

__version__ = "1.11.0"
__version__ = "1.11.1"

import importlib.util

Expand Down
2 changes: 1 addition & 1 deletion ai_diffusion/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async def connect(url=default_url):
]
if len(missing) > 0:
raise MissingResource(ResourceKind.node, missing)
client.nodes_inputs = {name: nodes[name]["input"]["required"] for name in nodes}
client.nodes_inputs = {name: nodes[name]["input"].get("required", None) for name in nodes}

# Retrieve list of checkpoints
client._refresh_models(nodes, await client.try_inspect_checkpoints())
Expand Down

0 comments on commit 3c3bd77

Please sign in to comment.