Skip to content

Commit eed8482

Browse files
committed
Use SyntaxError instead for missing backticks
1 parent 19f1cb2 commit eed8482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/computation/parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def tokenize_string(source: str) -> Iterator[Tok]:
129129
token_generator, source, string_start=start[1] + 1
130130
)
131131
except Exception:
132-
raise ValueError(f"Failed to parse backticks in '{source}'.")
132+
raise SyntaxError(f"Failed to parse backticks in '{source}'.")
133133
else:
134134
yield toknum, tokval
135135

0 commit comments

Comments
 (0)