5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-04 23:16:56 +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
%tbody
- @sites.each do |site|
-# Los sitios pueden fallar en cargar si los eliminamos físicamente del disco
- begin
- 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)
-#
TODO: Solo les usuaries cachean porque tenemos que separar
@ -56,5 +61,3 @@
type: 'info',
link: site_usuaries_path(site)
= render 'sites/build', site: site
- rescue ActionView::Template::Error => e
- ExceptionNotifier.notify_exception(e.cause, data: { site: @site.name, usuarie: current_usuarie.id })