mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Handle AttributeError during calltip lookup
This commit is contained in:
parent
ca30acfea8
commit
814ef237a2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue