diff --git a/Lib/idlelib/ClassBrowser.py b/Lib/idlelib/ClassBrowser.py index 338836a9fa3..240394b68f4 100644 --- a/Lib/idlelib/ClassBrowser.py +++ b/Lib/idlelib/ClassBrowser.py @@ -98,7 +98,7 @@ def listclasses(self): for key, cl in dict.items(): if cl.module == name: s = key - if cl.super: + if hasattr(cl, 'super') and cl.super: supers = [] for sup in cl.super: if type(sup) is type(''):