Skip to content

Commit bda894c

Browse files
committed
Fix the syntax for multi-exception rescue
1 parent a7b87da commit bda894c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integration/browse_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def browse_with_retry(args)
3030

3131
begin
3232
@fa.browse(args)
33-
rescue FAStatusError => e
33+
rescue FAStatusError, FASlowdownError => e
3434
raise unless (retries += 1) <= 5
3535

3636
puts "FAStatusError on Search: #{e}, retry #{retries} in #{wait_between_tries} second(s)..."

tests/integration/search_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def search_with_retry(args)
3030

3131
begin
3232
@fa.search(args)
33-
rescue [FAStatusError, FASlowdownError] => e
33+
rescue FAStatusError, FASlowdownError => e
3434
raise unless (retries += 1) <= 5
3535

3636
puts "FA error on Search: #{e}, retry #{retries} in #{wait_between_tries} second(s)..."

0 commit comments

Comments
 (0)