We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f47ffa2 commit 8bae5c4Copy full SHA for 8bae5c4
autogen/agentchat/contrib/agent_builder.py
@@ -446,7 +446,7 @@ def load(
446
try:
447
with open(filepath) as f:
448
cached_configs = json.load(f)
449
- except FileNotFoundError:
450
- raise FileNotFoundError(f"{filepath} does not exist.")
+ except FileNotFoundError as e:
+ raise FileNotFoundError(f"{filepath} does not exist.") from e
451
_config_check(cached_configs)
452
return self.build(cached_configs=cached_configs, **kwargs)
0 commit comments