Skip to content

Commit

Permalink
SM-1147: Try to init logger and fail safely rather than the panic tha…
Browse files Browse the repository at this point in the history
…t occurs.
  • Loading branch information
coltonhurst committed Mar 21, 2024
1 parent 67e743f commit c766cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bitwarden-py/src/client.rs
Expand Up @@ -8,7 +8,7 @@ pub struct BitwardenClient(JsonClient);
impl BitwardenClient {
#[new]
pub fn new(settings_string: Option<String>) -> Self {
pyo3_log::init();
_ = pyo3_log::try_init();

Check warning on line 11 in crates/bitwarden-py/src/client.rs

View check run for this annotation

Codecov / codecov/patch

crates/bitwarden-py/src/client.rs#L11

Added line #L11 was not covered by tests
Self(JsonClient::new(settings_string))
}

Expand Down

0 comments on commit c766cea

Please sign in to comment.