Fixed syntax error on exception

Fixed a small syntax error