documentation fix
changed set_type to not throw and catch an exception