This adds handling for instances where a specified attribute is not found within the pydicom Dataset. For instance, if DICOM tag FrameReferenceTime is not found within the header the current behaviour will display Dataset does not have attribute 'FrameReferenceTime'. This PR fixes this issue by first checking if the attribute is found within the pydicom Dataset.
Same opinion as @sapetnioc, and as the changes don't look harmful and "competent people" are not available, I am in favor of merging this PR now, otherwise I fear it will never be done ?
This adds handling for instances where a specified attribute is not found within the pydicom Dataset. For instance, if DICOM tag FrameReferenceTime is not found within the header the current behaviour will display
Dataset does not have attribute 'FrameReferenceTime'
. This PR fixes this issue by first checking if the attribute is found within the pydicom Dataset.