mirror of
https://github.com/Cian-H/read_aconity_layers.git
synced 2026-05-29 16:12:03 +01:00
Fixed mistake in csv parser (was parsing as csv, not ssv)
This commit is contained in:
@@ -17,9 +17,15 @@ impl From<rust_fn::ReadError> for PyErr {
|
||||
}
|
||||
rust_fn::ReadError::Io(e) => PyErr::new::<exceptions::PyIOError, _>(format!("{}", e)),
|
||||
rust_fn::ReadError::CSV(e) => PyErr::new::<exceptions::PyIOError, _>(format!("{}", e)),
|
||||
rust_fn::ReadError::ParseIntError(e) => {
|
||||
PyErr::new::<exceptions::PyRuntimeError, _>(format!("{}", e))
|
||||
}
|
||||
rust_fn::ReadError::ParseFloatError(e) => {
|
||||
PyErr::new::<exceptions::PyRuntimeError, _>(format!("{}", e))
|
||||
}
|
||||
rust_fn::ReadError::ShapeError(e) => {
|
||||
PyErr::new::<exceptions::PyIOError, _>(format!("{}", e))
|
||||
}
|
||||
rust_fn::ReadError::MiscError(e) => PyErr::new::<exceptions::PyRuntimeError, _>(e),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user