Skip to content

Commit

Permalink
fix: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Nov 17, 2024
1 parent 224fbd2 commit 8e2c92f
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/cmd/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,17 +384,18 @@ pub fn run(argv: &[&str]) -> CliResult<()> {

py_row.call_method1(intern!(py, "_update_underlying_data"), (row_data,))?;

let result = match py.eval(&arg_expression, Some(&batch_globals), Some(&batch_locals)) {
Ok(r) => r,
Err(e) => {
error_count += 1;
if debug_flag {
log::error!("Expression error:{row_number}-{e:?}");
}
e.print_and_set_sys_last_vars(py);
error_result.clone().into_any()
}
};
let result =
match py.eval(&arg_expression, Some(&batch_globals), Some(&batch_locals)) {
Ok(r) => r,
Err(e) => {
error_count += 1;
if debug_flag {
log::error!("Expression error:{row_number}-{e:?}");
}
e.print_and_set_sys_last_vars(py);
error_result.clone().into_any()
},
};

if args.cmd_map {
let result = helpers
Expand Down

0 comments on commit 8e2c92f

Please sign in to comment.