handle recordnotfound errors
This commit is contained in:
@@ -28,6 +28,8 @@ module Automod
|
|||||||
}
|
}
|
||||||
|
|
||||||
dynamo_db_client.put_item(table_name: "automod_events_#{Rails.env}", item: data)
|
dynamo_db_client.put_item(table_name: "automod_events_#{Rails.env}", item: data)
|
||||||
|
rescue ActiveRecord::RecordNotFound
|
||||||
|
# do nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
def dynamo_db_client
|
def dynamo_db_client
|
||||||
|
|||||||
Reference in New Issue
Block a user