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?
+1
View File
@@ -11,6 +11,7 @@ class SendWebhookJob < Postal::Job
begin
new_items[::Regexp.last_match(1)] = server.message_db.message(value.to_i).webhook_hash
rescue Postal::MessageDB::Message::NotFound
# No message found, don't do any replacement
end
end