Skip to content

Commit

Permalink
fix arg validation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sycai committed Sep 23, 2024
1 parent bf59646 commit e38f20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bigquery_magics/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def _parse_magic_args(line: str) -> Tuple[List[Any], Any]:

args = magic_arguments.parse_argstring(_cell_magic, rest_of_args)

if args.engine != "bigframes" or args.engine != "pandas":
if args.engine is not None and args.engine not in ("pandas", "bigframes"):
raise ValueError(f"Invalid engine: {args.engine}")

return params, args
Expand Down

0 comments on commit e38f20c

Please sign in to comment.