— This action was brought to foreclose a mortgage on real property. No answer was filed by the defendants, or either of them. Judgment and decree of foreclosure were entered under a stipulation of the parties. By the terms of the stipulation it is agreed “that the plaintiff may have judgment and decree as prayed for in his complaint, and that no execution or order of sale ¿hall issue thereon until the expiration of five months from the rendition of said decree.” Decree and judgment were rendered in accordance with such stipulation on April 7, 1898. The notes and mortgage sued on are set forth in the complaint by copy, from which it appears that the same come within the inhibition of the usury statutes of Idaho and the ruling of this court in the cases of Vermont etc. Trust Co. v. Hoffman, 5 Idaho, 376, 49 Pac. 314, and Vermont etc. Trust Co. v. McGregor, 5 Idaho, 510, 51 Pac. 104. But it is urged that, as this question was not raised in the lower court, it cannot be made a subject of review in the appellate court; that the error, if any was committed, was by the consent of both parties, with a full knowledge of all the facts, and in fact was not the error of the court, but of the parties, and Is not, therefore, subject to appeal. This position of respondent seems to be supported by abundant authority, and is, we think, the general rule. But the case at bar presents some peculiar features, which would seem to except it from the operation of the general rule. Section 1266 of the Bevised Statutes provides: “If it is ascertained in any suit brought on any contract, that a rate of interest has been contracted for greater than is authorized by this chapter, either directly or indirectly, in money or in property, .such contract works a forfeiture of ten cents on the hundred by the year, and at that rate, upon the amount of such contract, to the school fund of the county in which the suit is brought, and the plaintiff must have judgment for the principal sum, less all payments of principal or *555interest theretofore made and without interest or costs. The court must render judgment in said action for ten per cent per annum upon the entire principal of said contract, against the defendant in favor of the territory (state), for the use of the school fund of the county, whether the unlawful interest is contested or not; and in no case where unlawful interest is contracted for, must the plaintiff have judgment for more than the principal sum less the payments already made, whether the unlawful interest be incorporated with the principal sum or not.” Can the provisions of this statute, and the duty of the court thereunder, be abrogated by stipulation of the parties? We think not. Statutes against usury are penal in their character, and where, as in this state, it is provided that the penalty, or a part thereof, shall go to the state or to the school fund of the county, and imposes upon the court the duty of Tendering judgment for such penalty, such duty cannot be ■evaded, to the injury of the state or the school fund, by stipulation of parties. The plaintiff seeks a judgment upon a usurious contract. The statute makes it the duty of the court, whenever the nature of the contract sued upon is ascertained to be usurious under the statute, to render judgment for the penalty. The law leaves the court no discretion in this matter, it directs the judgment it shall enter, and any other or different judgment is erroneous. The judgment of the district court is reversed, and the cause remanded, with direction to enter .judgment in accordance with the provisions of section 1266 of the Eevised Statutes of Idaho. No costs allowed appellants.
Quarles and Sullivan, JJ., concur.