Section 26500 does not apply to the delivery of a firearm by a law enforcement agency to a dealer in order for that dealer to deliver the firearm to the spouse or domestic partner of a peace officer who died in the line of duty if the sale of that firearm to the spouse or domestic partner is made in accordance with subdivision (d) of Section 10334 of the Public Contract Code.