From 3256673de8a3477dade6f2431dfa32d94986d37e Mon Sep 17 00:00:00 2001 From: Jack Gerrits Date: Mon, 11 Mar 2024 14:36:37 -0400 Subject: [PATCH] make path --- autogen/coding/docker_commandline_code_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen/coding/docker_commandline_code_executor.py b/autogen/coding/docker_commandline_code_executor.py index 9e67fd7e18b..1758234d0ac 100644 --- a/autogen/coding/docker_commandline_code_executor.py +++ b/autogen/coding/docker_commandline_code_executor.py @@ -171,7 +171,7 @@ def execute_code_blocks(self, code_blocks: List[CodeBlock]) -> CommandLineCodeRe try: # Check if there is a filename comment - filename = _get_file_name_from_content(code, "/workspace") + filename = _get_file_name_from_content(code, Path("/workspace")) except ValueError: return CommandLineCodeResult(exit_code=1, output="Filename is not in the workspace")