forked from VimPlug/jedi
Add better error reporting for potential issues
This commit is contained in:
@@ -492,7 +492,7 @@ def tree_name_to_contexts(evaluator, context, tree_name):
|
|||||||
exceptions = context.eval_node(tree_name.get_previous_sibling().get_previous_sibling())
|
exceptions = context.eval_node(tree_name.get_previous_sibling().get_previous_sibling())
|
||||||
types = exceptions.execute_evaluated()
|
types = exceptions.execute_evaluated()
|
||||||
else:
|
else:
|
||||||
raise ValueError("Should not happen.")
|
raise ValueError("Should not happen. type: %s" % typ)
|
||||||
return types
|
return types
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user