diff --git a/lib/ontologies_linked_data/models/ontology_submission.rb b/lib/ontologies_linked_data/models/ontology_submission.rb index 24f7bfb8..c1f6cdbb 100644 --- a/lib/ontologies_linked_data/models/ontology_submission.rb +++ b/lib/ontologies_linked_data/models/ontology_submission.rb @@ -1175,8 +1175,8 @@ def process_submission(logger, options={}) ensure # make sure results get emailed begin - LinkedData::Utils::Notifications.submission_processed(self) - rescue Exception => e + LinkedData::Utils::Notifications.submission_processed(self) unless archive + rescue StandardError => e logger.error("Email sending failed: #{e.message}\n#{e.backtrace.join("\n\t")}"); logger.flush end end