Fix exception handling syntax