[PATCH 06/10] Fix "Raising a new style class which doesn't inherit from BaseException" error