Fix (and add test for) missing check for BaseException subclasses in the C
API.
2 files changed