From 9fe4c784b85fabab4c5670505052521995f49b58 Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Mon, 26 Aug 2024 15:29:10 -0700 Subject: [PATCH] fixed merge issues --- vision_agent/agent/agent_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vision_agent/agent/agent_utils.py b/vision_agent/agent/agent_utils.py index 185c2b9a..eb951ccc 100644 --- a/vision_agent/agent/agent_utils.py +++ b/vision_agent/agent/agent_utils.py @@ -5,6 +5,7 @@ from typing import Any, Dict, Optional logging.basicConfig(stream=sys.stdout) +_LOGGER = logging.getLogger(__name__) def _extract_sub_json(json_str: str) -> Optional[Dict[str, Any]]: @@ -38,7 +39,7 @@ def extract_json(json_str: str) -> Dict[str, Any]: json_dict = _extract_sub_json(json_str) if json_dict is not None: return json_dict # type: ignore - error_msg = f"Could not extract JSON from the given str: {json_str}.\nFunction input:\n{input_json_str}" + error_msg = f"Could not extract JSON from the given str: {json_str}" _LOGGER.exception(error_msg) raise ValueError(error_msg) from e