diff --git a/Lib/idlelib/ClassBrowser.py b/Lib/idlelib/ClassBrowser.py index 240394b68f4..82f51915d20 100644 --- a/Lib/idlelib/ClassBrowser.py +++ b/Lib/idlelib/ClassBrowser.py @@ -143,7 +143,10 @@ def GetIconName(self): def IsExpandable(self): if self.cl: - return not not self.cl.methods + try: + return not not self.cl.methods + except AttributeError: + return False def GetSubList(self): if not self.cl: