5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-05 01:16:57 +00:00

no fallar si el sitio no existe más

This commit is contained in:
f 2022-07-19 14:15:06 -03:00
parent fdfc5db345
commit a81b590356

View file

@ -14,8 +14,13 @@
%table.table.table-condensed %table.table.table-condensed
%tbody %tbody
- @sites.each do |site| - @sites.each do |site|
-# Los sitios pueden fallar en cargar si los eliminamos físicamente del disco
- begin - begin
- next unless site.jekyll - next unless site.jekyll
- rescue StandardError => e
- ExceptionNotifier.notify_exception(e, data: { site: @site.name, usuarie: current_usuarie.id })
- next
- rol = current_usuarie.rol_for_site(site) - rol = current_usuarie.rol_for_site(site)
-# -#
TODO: Solo les usuaries cachean porque tenemos que separar TODO: Solo les usuaries cachean porque tenemos que separar
@ -56,5 +61,3 @@
type: 'info', type: 'info',
link: site_usuaries_path(site) link: site_usuaries_path(site)
= render 'sites/build', site: site = render 'sites/build', site: site
- rescue ActionView::Template::Error => e
- ExceptionNotifier.notify_exception(e.cause, data: { site: @site.name, usuarie: current_usuarie.id })