Whenever any person under the age of 18 years is taken into custody in connection with any traffic infraction case, and he is not taken directly before a magistrate, he shall be delivered to the custody of the probation officer. Unless sooner released, the probation officer shall keep the minor in the juvenile hall pending his appearance before a magistrate. When a minor is cited for an offense not involving the driving of a motor vehicle, the minor shall not be taken into custody pursuant to subdivision (a) of Section 40302 solely for failure to present a driver's license.
Ca. Veh. Code § 40302.5