obspy.io.segy.util._pack_attribute_nicer_exception

_pack_attribute_nicer_exception(obj, name, format)[source]

packs obj.name with the given format but raises a nicer error message.