fix(app_generator): improve error handling for closed file I/O operat… (#12073)

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN-
2024-12-25 16:34:38 +08:00
committed by GitHub
parent 1885d3df99
commit 39ace9bdee
4 changed files with 4 additions and 4 deletions

View File

@@ -309,7 +309,7 @@ class WorkflowAppGenerator(BaseAppGenerator):
try:
return generate_task_pipeline.process()
except ValueError as e:
if e.args[0] == "I/O operation on closed file.": # ignore this error
if len(e.args) > 0 and e.args[0] == "I/O operation on closed file.": # ignore this error
raise GenerateTaskStoppedError()
else:
logger.exception(