mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-07 11:54:32 +08:00
Add better error reporting for potential issues
This commit is contained in:
1 parent
877383b110
commit
1476551257
1 file changed
+1
-1
@@ -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())
|
||||
types = exceptions.execute_evaluated()
|
||||
else:
|
||||
raise ValueError("Should not happen.")
|
||||
raise ValueError("Should not happen. type: %s" % typ)
|
||||
return types
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user