The Canadian one wasn’t convicted; the law was effectively ruled partially unconstitutional: https://www.cbc.ca/news/canada/montreal/yvan-godbout-acquitt...
That is, arguably, the system working. Unfortunately, when things go to court, the system working often involves people getting hurt.