Skip to content

Commit

Permalink
fix: Fix for crash when docker container with specific id is not avai…
Browse files Browse the repository at this point in the history
…lable (Fixes #139)
  • Loading branch information
stmh committed Dec 18, 2024
1 parent 9bf0e2c commit 1f8b084
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/docker/find_apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ async fn inspect_docker_container(
let insights = app_state
.docker
.inspect_container(container_id, None::<InspectContainerOptions>)
.await
.unwrap();
.await?;

let state = insights.state.clone().unwrap();
let started_at_str = state.started_at.unwrap();
Expand Down

0 comments on commit 1f8b084

Please sign in to comment.