mirror of https://github.com/python/cpython
Handle AttributeError during calltip lookup
This commit is contained in:
parent
ca30acfea8
commit
814ef237a2
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue