style(rubocop): Lint/SuppressedException

This commit is contained in:
Adam Cooke
2024-02-12 09:55:18 +00:00
parent bab6346239
commit 278ef0886a
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -222,6 +222,7 @@ class MessagesController < ApplicationController
time = Chronic.parse(string, context: :past)
end
rescue StandardError
time = nil
end
raise TimeUndetermined, "Couldn't determine a suitable time from '#{string}'" if time.nil?