diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-02-07 08:07:13 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-02-07 08:07:13 (GMT) |
commit | 814ef237a2c1e42d98fd4c2c3b4afdc201140684 (patch) | |
tree | 9b65e20fbb75d440b61f3816cb2e2788414a22b9 /Lib | |
parent | ca30acfea89b7494b8e0d8d68fd613cb8a499eab (diff) | |
download | cpython-814ef237a2c1e42d98fd4c2c3b4afdc201140684.zip cpython-814ef237a2c1e42d98fd4c2c3b4afdc201140684.tar.gz cpython-814ef237a2c1e42d98fd4c2c3b4afdc201140684.tar.bz2 |
Handle AttributeError during calltip lookup
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/CallTips.py | 2 |
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): |