pydicom.config.RAISE

pydicom.config.RAISE = 2

If one of the validation modes is set to this value, an exception is raised if a value validation error occurs.