5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-02-17 00:41:50 +00:00

fix: notificar la excepción correctamente

(cherry picked from commit 6e5195ca90)
This commit is contained in:
f 2023-10-26 18:06:43 -03:00
parent cd613b053d
commit 43ba7d78f0
No known key found for this signature in database

View file

@ -30,6 +30,10 @@ class Post
# a demanda?
def find_layout(path)
File.foreach(path).lazy.grep(/^layout: /).take(1).first&.split(' ')&.last&.tr('\'', '')&.tr('"', '')&.to_sym
rescue Errno::ENOENT => e
ExceptionNotifier.notify_exception(e, data: { path: path })
:post
end
# Genera un Post nuevo