Ensures caught errors have a __self__