(1) In any case in which, under section 394, a sentence of whipping is, wholly or partially, prevented from being executed, the offender shall be kept in custody till the Court which passed the sentence can revise it, and the said Court may, at its discretion either remit such sentence or sentence the offender in lieu of whipping or in lieu of ...