1
0
forked from VimPlug/jedi

Add better error reporting for potential issues

This commit is contained in:
Dave Halter
2018-01-20 19:33:47 +01:00
parent 877383b110
commit 1476551257

View File

@@ -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