Suzie1 / ComfyUI_Comfyroll_CustomNodes

Custom nodes for SDXL and SD1.5 including Multi-ControlNet, LoRA, Aspect Ratio, Process Switches, and many more nodes.
https://civitai.com/models/183551/comfyui-comfyroll-custom-nodes
525 stars 68 forks source link

Fix "NameError: name 'os' is not defined" #108

Closed ka-de closed 6 months ago

ka-de commented 6 months ago

Fixes this error I get:

2024 - 01 - 18 23:16:45, 183 - root - ERROR - Traceback (most recent call last):
File "/ComfyUI/execution.py", line 155, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/ComfyUI/execution.py", line 85, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/ComfyUI/execution.py", line 78, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes/nodes/nodes_utils_text.py", line 172, in save_list
while os.path.exists(filepath):
NameError: name 'os' is not defined
Suzie1 commented 6 months ago

thank you for spotting this PR accepted