Skip to content

Commit 1aa4a90

Browse files
committed
ignore too many branches linting
1 parent fcffa19 commit 1aa4a90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/patches/_bedrock_patches.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,13 @@ def _set_if_not_none(attributes, key, value):
332332
if value is not None:
333333
attributes[key] = value
334334

335+
# pylint: disable=too-many-branches
335336
def on_success(self, span: Span, result: Dict[str, Any]):
336337
model_id = self._call_context.params.get(_MODEL_ID)
337338

338339
if not model_id:
339340
return
340-
341+
341342
if "body" in result and isinstance(result["body"], StreamingBody):
342343
original_body = None
343344
try:

0 commit comments

Comments
 (0)