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.
Ca. Ins. Code § 532