Skip to content

Commit

Permalink
fixed merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Aug 26, 2024
1 parent 20009e1 commit 9fe4c78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vision_agent/agent/agent_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9fe4c78

Please sign in to comment.