From b6aaa3994b252ccc98fe449666609a3540adc42e Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Mon, 11 Dec 2023 08:03:28 +0900 Subject: [PATCH] fix: wildcards - crash when 'select' input is not given --- modules/impact/config.py | 2 +- modules/impact/impact_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/impact/config.py b/modules/impact/config.py index af1d9230..eef9b4e6 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -2,7 +2,7 @@ import configparser import os -version = "V4.44.6" +version = "V4.44.7" dependency_version = 19 diff --git a/modules/impact/impact_server.py b/modules/impact/impact_server.py index 94c044a4..ea2dc0f4 100644 --- a/modules/impact/impact_server.py +++ b/modules/impact/impact_server.py @@ -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]]