The former president has been found guilty of trying to mount coup to cling to power after he lost the election.