lib/aws_recon/collectors/organizations.rb in aws_recon-0.2.24 vs lib/aws_recon/collectors/organizations.rb in aws_recon-0.2.25
- old
+ new
@@ -46,10 +46,13 @@
resources.push(struct.to_h)
end
end
rescue Aws::Organizations::Errors::ServiceError => e
log_error(e.code)
- raise e unless suppressed_errors.include?(e.code)
+
+ unless suppressed_errors.include?(e.code) && !@options.quit_on_exception
+ raise e
+ end
end
resources
end