We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed812dd commit d31e6d5Copy full SHA for d31e6d5
src/argo_cd.rs
@@ -177,10 +177,10 @@ impl ArgoCD {
177
.expect("Failed to request ArgoCD sync status");
178
179
if response.status().is_success() {
180
- let app_information: Application = self
181
- .rt
182
- .block_on(response.json())
183
- .expect("Failed to read ArgoCD sync status response");
+ let app_information = match self.rt.block_on(response.json::<Application>()).ok() {
+ Some(app) => app,
+ None => continue,
+ };
184
185
debug!("ArgoCD sync status response: {:?}", app_information);
186
0 commit comments