delivered the'opinion of the court.
Primitivo Rocafort obtained a judgment against two defendants in the sum of $2,000 with interest thereon at the rate of ten per cent per annum from May 11, 1917. The only part of the judgment appealed from is that relative to interest, inasmuch as defendants and appellants say that in May, 19.17, in an attachment.,proceeding aTgainst their creditor, Rocafort, they were ordered not to pay the principal sum or any part thereof, but were ordered to retain the *485whole amount in their custody until further order of the court. Appellants insist that they ought not to he mulcted in interest when they were under an order of a competent court not to pay. Eocafort, the appellee, was sued and an attachment issued against his debtors. Subsequently he won the suit and it was not his fault that he was unable to ■collect his debt against the present appellants.
Despite the order of the court, if appellants had wanted ' to stop the running of interest the way was open to them. They could have consigned the money into court by virtue of the provisions of the Civil Code, sections 1144 et seq. If appellants were in doubt as to any feature of their duties they could have petitioned the court to allow them to consign the money. As it was they obtained money from Eocafort and retained it throughout the years. They had the full benefit of the loan and the use of the money. Similarly in the United States, to stop the running of interest money should be paid into court. 22 Cyc. 1559.
Incidentally we may say that it does not appear that appellants were made custodians of the money, but that the principal firm for whom they were sureties in solido was ordered not to pay. Not even that firm was made a custodian. Hence section 1672 of the Civil Code in regard to money deposited is inapplicable. No money was deposited with ap - pellants.
Section 1124 of the Civil Code provides that obligations are extinguished by payment, etc., and appellants have not brought themselves within any provision of that section.
The judgment appealed from must be
Affirmed.
Chief Justice Del Toro and Justices Aldrey, Hutchison and Franco Soto concurred.