mirror of
https://github.com/idrirap/ComfyUI-Lora-Auto-Trigger-Words.git
synced 2026-03-21 13:12:13 -03:00
fix: ignored when selector is empty
This commit is contained in:
3
utils.py
3
utils.py
@@ -178,6 +178,9 @@ def parse_selector(selector, tags_list):
|
||||
for range_index in range_index_list:
|
||||
# single value
|
||||
if range_index.count(":") == 0:
|
||||
# remove empty values
|
||||
if range_index.strip() == "":
|
||||
continue
|
||||
index = int(range_index)
|
||||
# ignore out of bound indexes
|
||||
if abs(index) > len(tags_list) - 1:
|
||||
|
||||
Reference in New Issue
Block a user