Twenty-year-old Jamie Waylett, who plays school bully Vincent Crabbe in the magical movie franchise, pleaded guilty to producing the drug at a court hearing last week.
Prosecutors said police found 10 marijuana plants growing in a bedroom at Waylett's mother's house in London.
Producing cannabis carries a maximum 14-year sentence. Judge Timothy Workman said Tuesday that he accepted that the cultivation was on a small scale and for Waylett's own use.
He said the actor had been, "until now, a man of good character."
Get Action News on your website