In a ruling that stresses the importance of obtaining knowing waivers during guilty pleas in local and town courts, a federal appeals court has granted a habeas petition for a man who pleaded guilty to misdemeanor criminal contempt.

A unanimous panel of the 2nd U.S. Circuit Court of Appeals found that the trial record of the man’s plea did not establish that he understood he was giving up his right to trial or his right to appeal.