pydicom.tag.tag_in_exception#
- pydicom.tag.tag_in_exception(tag: BaseTag) Iterator[None] [source]#
Use tag within a context.
Used to include the tag details in the traceback message when an exception is raised within the context.
Note: It is preferable to use the with dataset context manager which provides the full path to the data element.
- Parameters:
tag (BaseTag) – The tag to use in the context.