Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
romanovacca authored and stinodego committed Nov 9, 2023
1 parent a9fec57 commit 11ed15a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion py-polars/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ create_exception!(polars.exceptions, SchemaFieldNotFoundError, PyException);
create_exception!(polars.exceptions, ShapeError, PyException);
create_exception!(polars.exceptions, StringCacheMismatchError, PyException);
create_exception!(polars.exceptions, StructFieldNotFoundError, PyException);
create_exception!(polars.exceptions, FileNotFoundError, PyException);

#[macro_export]
macro_rules! raise_err(
Expand Down
7 changes: 2 additions & 5 deletions py-polars/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ use pyo3::wrap_pyfunction;
use crate::conversion::Wrap;
use crate::dataframe::PyDataFrame;
use crate::error::{
ColumnNotFoundError, ComputeError, DuplicateError, FileNotFoundError, InvalidOperationError,
NoDataError, OutOfBoundsError, PyPolarsErr, SchemaError, SchemaFieldNotFoundError,
StructFieldNotFoundError,
ColumnNotFoundError, ComputeError, DuplicateError, InvalidOperationError, NoDataError,
OutOfBoundsError, PyPolarsErr, SchemaError, SchemaFieldNotFoundError, StructFieldNotFoundError,
};
use crate::expr::PyExpr;
use crate::functions::string_cache::PyStringCacheHolder;
Expand Down Expand Up @@ -295,8 +294,6 @@ fn polars(py: Python, m: &PyModule) -> PyResult<()> {
py.get_type::<StructFieldNotFoundError>(),
)
.unwrap();
m.add("FileNotFoundError", py.get_type::<FileNotFoundError>())
.unwrap();

// Build info
#[cfg(feature = "build_info")]
Expand Down

0 comments on commit 11ed15a

Please sign in to comment.