Skip to content

Commit 4f8a369

Browse files
committed
fix logic
1 parent 7937b41 commit 4f8a369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/tracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def set_status(self, status):
535535
otel_status = StatusCode.ERROR
536536
otel_description = status
537537

538-
if _OTEL_VERSION is not None and _OTEL_VERSION >= (1, 12, 0):
538+
if _OTEL_VERSION is None or _OTEL_VERSION >= (1, 12, 0):
539539
self._otel_span.set_status(otel_status, otel_description)
540540
else:
541541
self._otel_span.set_status(Status(otel_status, otel_description))

0 commit comments

Comments
 (0)