mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-15 00:01:36 -04:00
Only rescue from StandardError's
This commit is contained in:
parent
50b6e2841d
commit
e3c1091de8
@ -9,7 +9,7 @@ module Faraday
|
|||||||
retries = @retries
|
retries = @retries
|
||||||
begin
|
begin
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
rescue Exception => e
|
rescue => e
|
||||||
if retries > 0
|
if retries > 0
|
||||||
retries -= 1
|
retries -= 1
|
||||||
retry
|
retry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user