Skip to content

Commit 3443669

Browse files
committed
run ruff
Signed-off-by: emdneto <[email protected]>
1 parent 475bfa2 commit 3443669

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opentelemetry-api/src/opentelemetry/trace/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,9 @@ def use_span(
588588
finally:
589589
context_api.detach(token)
590590

591-
# Record only exceptions that inherit Exception class but not BaseException, because
592-
# classes that directly inherit BaseException are not technically errors, e.g. GeneratorExit.
593-
# See https://github.com/open-telemetry/opentelemetry-python/issues/4484.
591+
# Record only exceptions that inherit Exception class but not BaseException, because
592+
# classes that directly inherit BaseException are not technically errors, e.g. GeneratorExit.
593+
# See https://github.com/open-telemetry/opentelemetry-python/issues/4484
594594
except Exception as exc: # pylint: disable=broad-exception-caught
595595
if isinstance(span, Span) and span.is_recording():
596596
# Record the exception as an event

0 commit comments

Comments
 (0)