diff --git a/app/models/site.rb b/app/models/site.rb index b8050591..2a3b8118 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -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]