summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2007-02-07 08:07:13 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2007-02-07 08:07:13 (GMT)
commit814ef237a2c1e42d98fd4c2c3b4afdc201140684 (patch)
tree9b65e20fbb75d440b61f3816cb2e2788414a22b9
parentca30acfea89b7494b8e0d8d68fd613cb8a499eab (diff)
downloadcpython-814ef237a2c1e42d98fd4c2c3b4afdc201140684.zip
cpython-814ef237a2c1e42d98fd4c2c3b4afdc201140684.tar.gz
cpython-814ef237a2c1e42d98fd4c2c3b4afdc201140684.tar.bz2
Handle AttributeError during calltip lookup
-rw-r--r--Lib/idlelib/CallTips.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py
index d2fe924..7bcc1e2 100644
--- a/Lib/idlelib/CallTips.py
+++ b/Lib/idlelib/CallTips.py
@@ -112,7 +112,7 @@ class CallTips:
namespace.update(__main__.__dict__)
try:
return eval(name, namespace)
- except NameError:
+ except (NameError, AttributeError):
return None
def _find_constructor(class_ob):