From 5173a7b58969e7bed38d1486e3ac801e8c2754af Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Wed, 1 Jul 2020 08:07:30 +0100 Subject: [PATCH] Remove try/catch block as it will make it hard for people to see what the issue when using the Razor view when building sites --- .../Views/Partials/BlockList/Default.cshtml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml b/src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml index 8e5de940c5..19ae842759 100644 --- a/src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml +++ b/src/Umbraco.Web.UI/Views/Partials/BlockList/Default.cshtml @@ -8,13 +8,6 @@ { if (layout?.Udi == null) { continue; } var data = layout.Data; - try - { - @Html.Partial("BlockList/Components/" + data.ContentType.Alias, layout) - } - catch (Exception ex) - { - global::Umbraco.Core.Composing.Current.Logger.Error(typeof(BlockListModel), ex, "Could not display block list component for content type {0}", data?.ContentType?.Alias); - } + @Html.Partial("BlockList/Components/" + data.ContentType.Alias, layout) }