Alex Gaynor added the comment: Why not just: issubclass(exctype, self.exception_types)? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue15806> _______________________________________