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__)
|
namespace.update(__main__.__dict__)
|
||||||
try:
|
try:
|
||||||
return eval(name, namespace)
|
return eval(name, namespace)
|
||||||
except NameError:
|
except (NameError, AttributeError):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _find_constructor(class_ob):
|
def _find_constructor(class_ob):
|
||||||
|
|
Loading…
Reference in New Issue