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.

Parameters:

tag (BaseTag) – The tag to use in the context.