Syntax error in exception handling fixed