مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
style(rubocop): Lint/SuppressedException
هذا الالتزام موجود في:
@@ -222,6 +222,7 @@ class MessagesController < ApplicationController
|
|||||||
time = Chronic.parse(string, context: :past)
|
time = Chronic.parse(string, context: :past)
|
||||||
end
|
end
|
||||||
rescue StandardError
|
rescue StandardError
|
||||||
|
time = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
raise TimeUndetermined, "Couldn't determine a suitable time from '#{string}'" if time.nil?
|
raise TimeUndetermined, "Couldn't determine a suitable time from '#{string}'" if time.nil?
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ class SendWebhookJob < Postal::Job
|
|||||||
begin
|
begin
|
||||||
new_items[::Regexp.last_match(1)] = server.message_db.message(value.to_i).webhook_hash
|
new_items[::Regexp.last_match(1)] = server.message_db.message(value.to_i).webhook_hash
|
||||||
rescue Postal::MessageDB::Message::NotFound
|
rescue Postal::MessageDB::Message::NotFound
|
||||||
|
# No message found, don't do any replacement
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم