handling error of pygments