Every person convicted of the crime of sodomy shall be sentenced to the penitentiary for not more than ten years.