PARIS — The provocative French comedian Dieudonné M’bala M’bala was found guilty on Wednesday of condoning terrorism after a Facebook message he posted in January suggested sympathy with one of the gunmen in the attacks that killed 17 people in Paris.

The court in Paris gave him a suspended two-month jail sentence.

Mr. M’bala M’bala was convicted under a new law enacted in November meant to rein in speech supporting terrorism. The law was aggressively enforced by the French authorities in the wake of the January attacks.

While the law allows for up to seven years in prison and 100,000 euros in fines, prosecutors in Mr. M’bala M’bala’s case had sought a fine of €30,000, or $32,000, converted into 200 days of jail time if he failed to pay.