Seattle City Attorney Pete Holmes waves his bag of marijuana to waiting photographers after making a purchase inside at Cannabis City in Seattle on July 8. (Elaine Thompson/AP)

Last week, as legal marijuana went on sale in Washington state, the Seattle city attorney celebrated the occasion by purchasing four grams. Pete Holmes, who was elected to the position in 2009, issued a press release announcing his purchase, complete with a “We did it!” message for voters.

Well, it turns out he broke the rules by bringing said marijuana back to his office, so now he’s apologizing.

The city of Seattle’s official policy is that its workplaces are drug free, which means that city employees are not allowed to possess or use controlled substances on the premises. They also cannot possess a controlled substance while out on city business.

Holmes issued a statement on Friday afternoon, apologizing for bringing the unopened marijuana back to his offices and violating these rules. He apologized to his employees and to the public and said he is going to donate $3,000 to Seattle’s Downtown Emergency Service Center.