173. Every judgment inflicting a penalty under this act must order the confiscation of the alcoholic beverages seized. Nevertheless the confiscation may be ordered without the infliction of a penalty, if the judge is of the opinion that the person prosecuted is not guilty of the offence of which he is accused, but that the alcoholic beverages seized were kept or transported in violation of this act.