try fix instance notfound bug

This commit is contained in:
zombieyang
2025-02-13 23:55:32 +08:00
parent 87192dc0b2
commit f1993eb2b1
2 changed files with 10 additions and 6 deletions
+3 -2
View File
@@ -433,8 +433,9 @@ def define_comfyui_nodes(sdpppServer):
else:
document = layer_or_group[0]['document']
if document['instance_id'] not in sdpppServer.ppp_instances:
raise ValueError(f'Photoshop instance {document["instance_id"]} not found')
# dont check here, some python cannot read the data in this thread.
# if document['instance_id'] not in sdpppServer.ppp_instances:
# raise ValueError(f'Photoshop instance {document["instance_id"]} not found')
res_text = []
for i, item_layer in enumerate(layer_or_group):
+7 -4
View File
@@ -84,8 +84,10 @@ def define_comfyui_nodes_legacy(sdppp):
sdppp.has_ps_instance(throw_error=True)
linked_style, document = parse_params(unique_id, prompt, layer_or_group, document)
if document['instance_id'] not in sdppp.ppp_instances:
raise ValueError(f'Photoshop instance {document["instance_id"]} not found')
# dont check here, some python cannot read the data in this thread.
# if document['instance_id'] not in sdppp.ppp_instances:
# raise ValueError(f'Photoshop instance {document["instance_id"]} not found')
res_image = []
res_mask = []
@@ -203,8 +205,9 @@ def define_comfyui_nodes_legacy(sdppp):
linked_style, document = parse_params(unique_id, prompt, layer_or_group, document)
if document['instance_id'] not in sdppp.ppp_instances:
raise ValueError(f'Photoshop instance {document["instance_id"]} not found')
# dont check here, some python cannot read the data in this thread.
# if document['instance_id'] not in sdppp.ppp_instances:
# raise ValueError(f'Photoshop instance {document["instance_id"]} not found')
params = []
# iterate layer_or_group