forked from VimPlug/jedi
Add better error reporting
This commit is contained in:
@@ -470,7 +470,7 @@ def tree_name_to_contexts(evaluator, context, tree_name):
|
|||||||
filters = [next(filters)]
|
filters = [next(filters)]
|
||||||
return finder.find(filters, attribute_lookup=False)
|
return finder.find(filters, attribute_lookup=False)
|
||||||
elif node.type not in ('import_from', 'import_name'):
|
elif node.type not in ('import_from', 'import_name'):
|
||||||
raise ValueError("Should not happen.")
|
raise ValueError("Should not happen. type: %s", node.type)
|
||||||
|
|
||||||
typ = node.type
|
typ = node.type
|
||||||
if typ == 'for_stmt':
|
if typ == 'for_stmt':
|
||||||
|
|||||||
Reference in New Issue
Block a user