We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef43486 commit 0dc8434Copy full SHA for 0dc8434
newrelic/api/transaction.py
@@ -376,10 +376,7 @@ def __enter__(self):
376
# actual thread and not a greenlet.
377
378
if not hasattr(sys, "_current_frames") or self.thread_id in sys._current_frames():
379
- try:
380
- thread_instance = threading.current_thread()
381
- except TypeError:
382
- thread_instance = threading.currentThread()
+ thread_instance = threading.current_thread()
383
384
self._utilization_tracker = utilization_tracker(self.application.name)
385
if self._utilization_tracker:
0 commit comments