Skip to content

Commit 2d32ea9

Browse files
authored
Add files via upload
1 parent f91ab1d commit 2d32ea9

24 files changed

+7246
-5221
lines changed

Diff for: IFChatPromptNode.py

+1,114-1,114
Large diffs are not rendered by default.

Diff for: IFDisplayTextNode.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
import sys
2+
import logging
3+
from typing import Optional
4+
5+
# Initialize logger
6+
logger = logging.getLogger(__name__)
27

38
class IFDisplayText:
49
def __init__(self):
@@ -27,7 +32,11 @@ def INPUT_TYPES(cls):
2732
OUTPUT_NODE = True
2833
CATEGORY = "ImpactFrames💥🎞️"
2934

30-
def display_text(self, text, select):
35+
def display_text(self, text: Optional[str], select):
36+
if text is None:
37+
logger.error("Received None for text input in display_text.")
38+
return "" # Or handle appropriately
39+
3140
print("==================")
3241
print("IF_AI_tool_output:")
3342
print("==================")

0 commit comments

Comments
 (0)