Fixed a syntax error at the end of an except statement.