Implement error handling for node imports

Added error handling for importing node mappings with logging.
This commit is contained in:
FugitiveExpert01
2026-03-07 16:44:36 +01:00
committed by GitHub
parent bb355bb844
commit 4e891997de
+17 -4
View File
@@ -3,10 +3,23 @@ FEnodes — ComfyUI custom node pack
Author: FugitiveExpert01
"""
from .nodes_tiling import NODE_CLASS_MAPPINGS as _TILING_CLASSES
from .nodes_tiling import NODE_DISPLAY_NAME_MAPPINGS as _TILING_NAMES
from .nodes_text import NODE_CLASS_MAPPINGS as _TEXT_CLASSES
from .nodes_text import NODE_DISPLAY_NAME_MAPPINGS as _TEXT_NAMES
import logging
try:
from .nodes_tiling import NODE_CLASS_MAPPINGS as _TILING_CLASSES
from .nodes_tiling import NODE_DISPLAY_NAME_MAPPINGS as _TILING_NAMES
except Exception as e:
logging.warning(f"[FEnodes] Failed to load Tiling nodes: {e}")
_TILING_CLASSES = {}
_TILING_NAMES = {}
try:
from .nodes_text import NODE_CLASS_MAPPINGS as _TEXT_CLASSES
from .nodes_text import NODE_DISPLAY_NAME_MAPPINGS as _TEXT_NAMES
except Exception as e:
logging.warning(f"[FEnodes] Failed to load Text nodes: {e}")
_TEXT_CLASSES = {}
_TEXT_NAMES = {}
NODE_CLASS_MAPPINGS = {
**_TILING_CLASSES,