Fixed syntax error on exception