It is my understanding that A person can not be indicted if they are running for president.
Eugene Debs ran for president in 1920 while serving time. President Harding commuted his sentence in 1921. Has the law changed since then?