Fixed error handling branches.  Thanks
Victor Stinner for pointing this out.
2 files changed