mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 20:20:08 +08:00
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:
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
File diff suppressed because one or more lines are too long
@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user