add "raise" statement to convert script