Use new-style exception handling syntax