Skip to content

Commit

Permalink
expand to include RetrofitError (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Graff committed Nov 18, 2017
1 parent 4d56d29 commit 11bdbfe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import retrofit.RetrofitError;

import java.io.IOException;
import java.io.UncheckedIOException;
Expand Down Expand Up @@ -73,7 +74,7 @@ public List<String> processQuery(String metricsAccountName,
registry.counter(queryId.withTag("retries", retries + "")).increment();
metricSetList = metricsService.queryMetrics(metricsAccountName, canaryMetricConfig, canaryScope);
success = true;
} catch (IOException|UncheckedIOException e) {
} catch (IOException | UncheckedIOException | RetrofitError e) {
retries++;
// TODO: Externalize this as a configurable setting.
if (retries >= 10)
Expand Down

0 comments on commit 11bdbfe

Please sign in to comment.