Skip to content

Commit 17aba81

Browse files
authored
Fix exception handling for JSON decoding (#3787)
1 parent 7bacbfd commit 17aba81

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/bedrock_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _process_event(self, event):
117117
self._content_block["toolUse"]["input"] = json.loads(
118118
self._tool_json_input_buf
119119
)
120-
except json.DecodeError:
120+
except json.JSONDecodeError:
121121
self._content_block["toolUse"]["input"] = (
122122
self._tool_json_input_buf
123123
)

0 commit comments

Comments
 (0)