Fix inconsistency between parsers
@@ -58,7 +58,7 @@ def _parse_int_subscript(sub):
elif isinstance(s, int):
subscripts += einsum_symbols[s]
else:
- raise TypeError("For this input type lists must contain "
+ raise ValueError("For this input type lists must contain "
"either int or Ellipsis")
return subscripts
