5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 13:31:42 +00:00

Merge branch 'resiliencia' into 'rails'

ignorar posts sin layout pero notificar

Closes #3251 and #5828

See merge request sutty/sutty!97
This commit is contained in:
fauno 2023-03-23 22:14:53 +00:00
commit 81b3dae740

View file

@ -260,6 +260,8 @@ class Site < ApplicationRecord
layout = layouts[Post.find_layout(doc.path)]
@posts[lang].build(document: doc, layout: layout, lang: lang)
rescue TypeError => e
ExceptionNotifier.notify_exception(e, data: { site: name, site_id: id, path: doc.path })
end
@posts[lang]