Don't override exception in Python 3 (since one already gets raised). Also disable equality comparison.