We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
newsuper
1 parent d1d2ae7 commit ee0522eCopy full SHA for ee0522e
src/future/builtins/newsuper.py
@@ -62,7 +62,7 @@ def newsuper(typ=_SENTINEL, type_or_obj=_SENTINEL, framedepth=1):
62
try:
63
# Get the MRO so we can crawl it.
64
mro = type_or_obj.__mro__
65
- except AttributeError:
+ except (AttributeError, RuntimeError): # see issue #160
66
67
mro = type_or_obj.__class__.__mro__
68
except AttributeError:
0 commit comments