lib/excon/hypermedia/middlewares/hypertext_cache_pattern.rb in excon-hypermedia-0.5.3 vs lib/excon/hypermedia/middlewares/hypertext_cache_pattern.rb in excon-hypermedia-0.6.0
- old
+ new
@@ -29,10 +29,10 @@
orig_stack = @stack
@stack = Excon::Middleware::Mock.new(orig_stack)
end
super
- rescue => e
+ rescue StandardError => e
raise unless e.class == Excon::Errors::StubNotFound
# If a request was made to a non-stubbed resource, don't use the Mock
# middleware, but simply send the request to the server.
@stack = orig_stack