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):