Except as provided in Sections 2117, 2117.5, 2118, and 2118.5, a violation of this chapter is punishable by imprisonment in the county jail not to exceed one year, or in the state prison, or by a fine of not more than twenty thousand dollars ($20,000), or by both the fine and imprisonment, at the discretion of the court.