We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 083f522 commit 3b3546cCopy full SHA for 3b3546c
autogen/agentchat/contrib/agent_builder.py
@@ -402,7 +402,7 @@ def load(
402
try:
403
print(f"Loding config from {filepath}")
404
cached_configs = json.load(open(filepath))
405
- except FileNotFoundError:
406
- raise FileNotFoundError(f"Config file {filepath} does not exist.")
+ except FileNotFoundError as e:
+ raise FileNotFoundError(f"Config file {filepath} does not exist.") from e
407
408
return self.build(cached_configs=cached_configs, **kwargs)
0 commit comments