Skip to content

Commit

Permalink
fix: enhance ToolEngineInvokeError to include meta information (#12238)
Browse files Browse the repository at this point in the history
Signed-off-by: -LAN- <laipz8200@outlook.com>
  • Loading branch information
laipz8200 authored Dec 31, 2024
1 parent fbf5ded commit 634b382
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/core/tools/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ class ToolApiSchemaError(ValueError):

class ToolEngineInvokeError(Exception):
meta: ToolInvokeMeta

def __init__(self, meta, **kwargs):
self.meta = meta
super().__init__(**kwargs)

0 comments on commit 634b382

Please sign in to comment.