Skip to content

Commit

Permalink
fix py-rattler
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Feb 5, 2025
1 parent 0c822b7 commit df0da02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions py-rattler/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use rattler_conda_types::{
VersionBumpError, VersionExtendError,
};
use rattler_lock::{ConversionError, ParseCondaLockError};
use rattler_networking::authentication_storage::backends::file::FileStorageError;
use rattler_networking::authentication_storage::AuthenticationStorageError;
use rattler_package_streaming::ExtractError;
use rattler_repodata_gateway::{fetch::FetchRepoDataError, GatewayError};
use rattler_shell::activation::ActivationError;
Expand Down Expand Up @@ -78,7 +78,7 @@ pub enum PyRattlerError {
#[error(transparent)]
ValidatePackageRecordsError(#[from] ValidatePackageRecordsError),
#[error(transparent)]
FileStorageError(#[from] FileStorageError),
AuthenticationStorageError(#[from] AuthenticationStorageError),
}

fn pretty_print_error(mut err: &dyn Error) -> String {
Expand Down Expand Up @@ -169,8 +169,8 @@ impl From<PyRattlerError> for PyErr {
PyRattlerError::ValidatePackageRecordsError(err) => {
ValidatePackageRecordsException::new_err(pretty_print_error(&err))
}
PyRattlerError::FileStorageError(err) => {
FileStorageException::new_err(pretty_print_error(&err))
PyRattlerError::AuthenticationStorageError(err) => {
AuthenticationStorageError::new_err(pretty_print_error(&err))
}
}
}
Expand Down Expand Up @@ -208,4 +208,4 @@ create_exception!(
PyException
);
create_exception!(exceptions, ValidatePackageRecordsException, PyException);
create_exception!(exceptions, FileStorageException, PyException);
create_exception!(exceptions, AuthenticationStorageException, PyException);

0 comments on commit df0da02

Please sign in to comment.