Skip to content

Commit

Permalink
chore: Fixes linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andyquinterom committed Sep 25, 2023
1 parent d82d665 commit 66d738a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/polars-pipe/src/executors/sinks/file_sink.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::any::Any;
use std::path::Path;
use std::thread::JoinHandle;

use crossbeam_channel::{bounded, Receiver, Sender};
Expand Down
2 changes: 2 additions & 0 deletions py-polars/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ impl std::convert::From<PyPolarsErr> for PyErr {
use PyPolarsErr::*;
match &err {
Polars(err) => match err {
PolarsError::SendError(err) => SendError::new_err(err.to_string()),
PolarsError::ArrowError(err) => ArrowErrorException::new_err(format!("{err:?}")),
PolarsError::ColumnNotFound(name) => ColumnNotFoundError::new_err(name.to_string()),
PolarsError::ComputeError(err) => ComputeError::new_err(err.to_string()),
Expand Down Expand Up @@ -70,6 +71,7 @@ impl Debug for PyPolarsErr {
}
}

create_exception!(exceptions, SendError, PyException);
create_exception!(exceptions, ArrowErrorException, PyException);
create_exception!(exceptions, ColumnNotFoundError, PyException);
create_exception!(exceptions, ComputeError, PyException);
Expand Down

0 comments on commit 66d738a

Please sign in to comment.