ComfyUI/app
RUiNtheExtinct e86ffb0ea6 fix(logger): handle OSError errno 22 on flush for Windows piped streams
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
2025-12-28 13:29:27 +05:30
..
database Add support for sqlite database (#8444) 2025-06-11 16:43:39 -04:00
__init__.py Add FrontendManager to manage non-default front-end impl (#3897) 2024-07-16 11:26:11 -04:00
app_settings.py Update frontend to v1.25.10 and revert navigation mode override (#9522) 2025-08-23 17:54:01 -04:00
custom_node_manager.py This should not be a warning. (#7946) 2025-05-05 07:49:07 -04:00
frontend_management.py Update server templates handler to use new multi-package distribution (comfyui-workflow-templates versions >=0.3) (#10791) 2025-11-19 22:36:56 -08:00
logger.py fix(logger): handle OSError errno 22 on flush for Windows piped streams 2025-12-28 13:29:27 +05:30
model_manager.py API for Recently Used Items (#8792) 2025-08-01 22:02:06 -04:00
subgraph_manager.py Add custom node published subgraphs endpoint (#10438) 2025-10-21 23:16:16 -04:00
user_manager.py feat(security): add System User protection with __ prefix (#10966) 2025-11-28 21:28:42 -05:00