Skip to content

Commit

Permalink
Merge pull request #5875 from samvera/jeremyf-backporting-5874-to-v3.…
Browse files Browse the repository at this point in the history
…x-stable

Ensuring Hyrax::UserStatImporter returns false on exception
  • Loading branch information
dlpierce authored Sep 30, 2022
2 parents bf0fbcc + 8178c68 commit b2e8828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/hyrax/user_stat_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def rescue_and_retry(fail_message)
rescue StandardError => exception
log_message fail_message
log_message "Last exception #{exception}"
# Without returning false, we return the results of log_message; which is true.
false
end

def date_since_last_cache(user)
Expand Down

0 comments on commit b2e8828

Please sign in to comment.