added begin/rescue to pygments call