Skip to content

Commit bf39690

Browse files
committed
Address issue raised by linter
1 parent 6815bc6 commit bf39690

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

sentry_sdk/traces.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,9 @@ def __init__(
278278
self._start_timestamp = datetime.now(timezone.utc)
279279
self._timestamp: "Optional[datetime]" = None
280280

281-
try:
282-
# profiling depends on this value and requires that
283-
# it is measured in nanoseconds
284-
self._start_timestamp_monotonic_ns = nanosecond_time()
285-
except AttributeError:
286-
self._start_timestamp_monotonic_ns = None
281+
# profiling depends on this value and requires that
282+
# it is measured in nanoseconds
283+
self._start_timestamp_monotonic_ns = nanosecond_time()
287284

288285
self._span_id: "Optional[str]" = None
289286

0 commit comments

Comments
 (0)