lib/frenchy/client.rb in frenchy-0.2.1 vs lib/frenchy/client.rb in frenchy-0.2.2
- old
+ new
@@ -24,10 +24,10 @@
while try <= @retries
sleep (@backoff_delay * (try*try)) if try > 0
begin
return perform("GET", path, params)
- rescue Frenchy::Error => err
+ rescue Frenchy::ServerError => err
try += 1
end
end
raise err