Skip to content

Commit ed728c2

Browse files
adriangbocelotl
authored andcommitted
apply lint
1 parent 5a1c58a commit ed728c2

File tree

1 file changed

+2
-3
lines changed
  • instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore

1 file changed

+2
-3
lines changed

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,8 @@ def _patched_api_call(self, original_func, instance, args, kwargs):
207207
_apply_response_attributes(span, result)
208208
_safe_invoke(extension.on_error, span, error)
209209
raise
210-
else:
211-
_apply_response_attributes(span, result)
212-
_safe_invoke(extension.on_success, span, result)
210+
_apply_response_attributes(span, result)
211+
_safe_invoke(extension.on_success, span, result)
213212
finally:
214213
_safe_invoke(extension.after_service_call)
215214
self._call_response_hook(span, call_context, result)

0 commit comments

Comments
 (0)