diff --git a/lib/traject/writers/solr_better_json_writer.rb b/lib/traject/writers/solr_better_json_writer.rb index c69310394..ae01d2df7 100644 --- a/lib/traject/writers/solr_better_json_writer.rb +++ b/lib/traject/writers/solr_better_json_writer.rb @@ -79,7 +79,7 @@ def send_single(c) resp = @http_client.post @solr_update_url, json_package, 'Content-type' => 'application/json' # Catch Timeouts and network errors as skipped records, but otherwise # allow unexpected errors to propagate up. - rescue *skippable_exceptions => e + rescue *skippable_exceptions => exception # rubocop:disable Naming/RescuedExceptionsVariableName https://github.com/rubocop/rubocop/issues/11809 # no body, local variable exception set above will be used below end