Skip to content

Commit 1473c2e

Browse files
committed
add begin
1 parent 83eb987 commit 1473c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optimizely/cmab/cmab_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _do_fetch_with_retry(url, request_body, retry_config, timeout)
151151
# The variation ID from the response.
152152

153153
backoff = retry_config.initial_backoff
154-
(0..retry_config.max_retries).each do |attempt|
154+
begin
155155
_do_fetch(url, request_body, timeout)
156156
rescue StandardError => e
157157
if attempt < retry_config.max_retries

0 commit comments

Comments
 (0)