mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 06:10:50 +08:00
When running ComfyUI in API mode on Windows, print() statements from custom nodes can crash with "OSError: [Errno 22] Invalid argument" during flush. This occurs because piped/redirected stdout streams on Windows may fail to flush even after successful writes. This fix catches OSError with errno 22 (EINVAL) specifically in LogInterceptor.flush(), allowing the flush callbacks to still execute. The error is safe to ignore since write() already succeeded. Fixes #11367 |
||
|---|---|---|
| .. | ||
| database | ||
| __init__.py | ||
| app_settings.py | ||
| custom_node_manager.py | ||
| frontend_management.py | ||
| logger.py | ||
| model_manager.py | ||
| subgraph_manager.py | ||
| user_manager.py | ||