diff --git a/server/src/chat/transport/matrix/project_rebuild.rs b/server/src/chat/transport/matrix/project_rebuild.rs index 54ae71e5..0e583f05 100644 --- a/server/src/chat/transport/matrix/project_rebuild.rs +++ b/server/src/chat/transport/matrix/project_rebuild.rs @@ -178,7 +178,9 @@ pub async fn handle_project_rebuild( if let Err(e) = docker_stop(&container_name).await { crate::slog!("[project-rebuild] stop '{container_name}': {e} (may already be stopped)"); } - if let Err(e) = docker_rm(&container_name).await { + if let Err(e) = docker_rm(&container_name).await + && !e.contains("No such container") + { return format!( "Rebuild failed at **container remove** step.\n\ Error: {e}\n\n\