mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-30 21:55:21 +08:00
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)]
|
||||
return finder.find(filters, attribute_lookup=False)
|
||||
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
|
||||
if typ == 'for_stmt':
|
||||
|
||||
Reference in New Issue
Block a user