Fix old-style exception raising code.