I think this line should be catching `AtrributeError`, not `KeyError` exception: https://github.com/MGHComputationalPathology/highdicom/blob/master/src/highdicom/legacy/sop.py#L361