summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/idlelib/ClassBrowser.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/ClassBrowser.py b/Lib/idlelib/ClassBrowser.py
index 240394b..82f5191 100644
--- a/Lib/idlelib/ClassBrowser.py
+++ b/Lib/idlelib/ClassBrowser.py
@@ -143,7 +143,10 @@ class ClassBrowserTreeItem(TreeItem):
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: