No specific relief can be granted to enforce a penal law, except in case of nuisance, nor to enforce a penalty or forfeiture in any case; but a contract otherwise proper to be enforced specifically may be so enforced, though a penalty is imposed or the damages are liquidated for its breach, and the party in default is willing to pay the same.
SDCL 21-9-11