In all cases where a jury is discharged or prevented from giving a verdict, by reason of an accident or other cause except where the defendant is discharged during the progress of the trial or after the case is submitted to them, the case may be again tried at the same or another term, as the court may direct.
SDCL 23A-25-11