mirror of
https://github.com/postalserver/postal.git
synced 2026-10-20 19:26:07 +00:00
style(rubocop): Lint/SuppressedException
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user