From 0585b95774472f98b90df52fad79f22037d71f72 Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Mon, 14 Jun 2021 11:09:29 -0500 Subject: [PATCH] FIX: NotImplementedError inherits from Exception (not StandardError) --- lib/rspec/openapi/hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rspec/openapi/hooks.rb b/lib/rspec/openapi/hooks.rb index 7e4dc255..5e536c43 100644 --- a/lib/rspec/openapi/hooks.rb +++ b/lib/rspec/openapi/hooks.rb @@ -22,7 +22,7 @@ records.each do |record| begin RSpec::OpenAPI::SchemaMerger.reverse_merge!(spec, RSpec::OpenAPI::SchemaBuilder.build(record)) - rescue => e # e.g. SchemaBuilder raises a NotImplementedError + rescue StandardError, NotImplementedError => e # e.g. SchemaBuilder raises a NotImplementedError # NOTE: Don't fail the build records_errors << [e, record] end