diff options
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/ClassBrowser.py | 5 |
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: |