From 814ef237a2c1e42d98fd4c2c3b4afdc201140684 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Wed, 7 Feb 2007 08:07:13 +0000 Subject: [PATCH] Handle AttributeError during calltip lookup --- Lib/idlelib/CallTips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index d2fe9246337..7bcc1e26959 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):