Try to correct SyntaxError when printing exception line numbers.