Skip to content

Commit 8bae5c4

Browse files
cool-RRrlam3
authored andcommitted
Fix exception cause in agent_builder.py (#1007)
1 parent f47ffa2 commit 8bae5c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autogen/agentchat/contrib/agent_builder.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def load(
446446
try:
447447
with open(filepath) as f:
448448
cached_configs = json.load(f)
449-
except FileNotFoundError:
450-
raise FileNotFoundError(f"{filepath} does not exist.")
449+
except FileNotFoundError as e:
450+
raise FileNotFoundError(f"{filepath} does not exist.") from e
451451
_config_check(cached_configs)
452452
return self.build(cached_configs=cached_configs, **kwargs)

0 commit comments

Comments
 (0)