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

no fallar todo si un sitio no funciona

This commit is contained in:
f 2022-07-19 13:52:38 -03:00
parent 15454596f2
commit fdfc5db345

View file

@ -14,6 +14,7 @@
%table.table.table-condensed %table.table.table-condensed
%tbody %tbody
- @sites.each do |site| - @sites.each do |site|
- begin
- next unless site.jekyll - next unless site.jekyll
- rol = current_usuarie.rol_for_site(site) - rol = current_usuarie.rol_for_site(site)
-# -#
@ -55,3 +56,5 @@
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 })