Article 542 of the French Code of Criminal Procedure
If the accused benefits from a legal cause for exemption from punishment, the Police Court shall find him guilty and exempt him from punishment. Where applicable, it shall rule on the civil action as set out in article 539.