fix: wildcards - crash when 'select' input is not given

This commit is contained in:
Dr.Lt.Data
2023-12-11 08:03:56 +09:00
parent d5598126c7
commit b6aaa3994b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import configparser
import os
version = "V4.44.6"
version = "V4.44.7"
dependency_version = 19
+1 -1
View File
@@ -347,7 +347,7 @@ def onprompt_for_switch(json_data):
inversed_switch_info[k] = select_input
elif cls in ['ImpactSwitch', 'LatentSwitch', 'SEGSSwitch', 'ImpactMakeImageList']:
if 'sel_mode' in v['inputs'] and v['inputs']['sel_mode']:
if 'sel_mode' in v['inputs'] and v['inputs']['sel_mode'] and 'select' in v['inputs']:
select_input = v['inputs']['select']
if isinstance(select_input, list) and len(select_input) == 2:
input_node = json_data['prompt'][select_input[0]]