mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Enhance exception chaining for better error traceability in role_raise_decorator
This commit is contained in:
parent
bb17453b50
commit
8483d5ae1e
1 changed files with 1 additions and 1 deletions
|
|
@ -660,7 +660,7 @@ def role_raise_decorator(func):
|
|||
if re.match(r"^openai\.", name) or re.match(r"^httpx\.", name):
|
||||
raise last_error
|
||||
|
||||
raise Exception(format_trackback_info(limit=None))
|
||||
raise Exception(format_trackback_info(limit=None)) from e
|
||||
|
||||
return wrapper
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue