Skip to content

Commit

Permalink
Merge pull request #191 from ncbo/develop
Browse files Browse the repository at this point in the history
do not send email notification when submissions are archived
  • Loading branch information
alexskr authored Feb 14, 2024
2 parents ec3236a + f0d101b commit 0003905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ontologies_linked_data/models/ontology_submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0003905

Please sign in to comment.