fix: catching Anthropic and other exceptions from ALTK. (#10790)

* Catching Anthropic and other exceptions.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
kiran-kate
2025-12-01 08:31:54 -05:00
committed by GitHub
parent 271c7ff4bd
commit 6d442eae28
6 changed files with 50 additions and 18 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -513,7 +513,7 @@ class PostToolProcessor(ALTKBaseTool):
output = None
try:
output = middleware.process(input_data, AgentPhase.RUNTIME)
except (AttributeError, TypeError, ValueError, RuntimeError) as e:
except Exception as e: # noqa: BLE001
logger.error(f"Exception in executing CodeGenerationComponent: {e}")
if output is not None and hasattr(output, "result"):
logger.info(f"Output of CodeGenerationComponent: {output.result}")