Skip to content

Commit d9c0110

Browse files
author
The TensorFlow Datasets Authors
committed
In error_utils, instance of current_context_msg should be shared across all threads/coroutines.
PiperOrigin-RevId: 648347714
1 parent aa8e9b5 commit d9c0110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_datasets/core/utils/error_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ErrorContext:
4141
@edc.dataclass
4242
@dataclasses.dataclass
4343
class ContextHolder:
44-
current_context_msg: edc.ContextVar[ErrorContext | None] = None
44+
current_context_msg: ErrorContext | None = None
4545

4646

4747
context_holder = ContextHolder()

0 commit comments

Comments
 (0)