app/jobs/bulkrax/importer_job.rb in bulkrax-3.3.1 vs app/jobs/bulkrax/importer_job.rb in bulkrax-3.3.2
- old
+ new
@@ -10,9 +10,11 @@
importer.current_run
unzip_imported_file(importer.parser)
import(importer, only_updates_since_last_import)
update_current_run_counters(importer)
schedule(importer) if importer.schedulable?
+ rescue CSV::MalformedCSVError => e
+ importer.status_info(e)
end
def import(importer, only_updates_since_last_import)
importer.only_updates = only_updates_since_last_import || false
return unless importer.valid_import?