If a peril is specially excepted in a contract of insurance and there is a loss which would not have occurred but for such peril, such loss is thereby excepted even though the immediate cause of the loss was a peril which was not excepted.
(Enacted by Stats. 1935, Ch. 145.)