Skip to content

Commit bae1f67

Browse files
committed
compat
1 parent 4768e99 commit bae1f67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/traces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def remove_attribute(self, key: str) -> None:
118118
pass
119119

120120
def get_status(self) -> "Union[SpanStatus, str]":
121-
if self._status in SpanStatus:
121+
if self._status in {s.value for s in SpanStatus}:
122122
return SpanStatus(self._status)
123123

124124
return self._status

0 commit comments

Comments
 (0)