Skip to content

Commit

Permalink
Fix exception cause in agent_builder.py (microsoft#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-RR authored Dec 18, 2023
1 parent aa946b3 commit 913b5f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autogen/agentchat/contrib/agent_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def load(
try:
with open(filepath) as f:
cached_configs = json.load(f)
except FileNotFoundError:
raise FileNotFoundError(f"{filepath} does not exist.")
except FileNotFoundError as e:
raise FileNotFoundError(f"{filepath} does not exist.") from e
_config_check(cached_configs)
return self.build(cached_configs=cached_configs, **kwargs)

0 comments on commit 913b5f2

Please sign in to comment.