From 1c8fcef7541825f3cb77fc63dba22e527cf034f7 Mon Sep 17 00:00:00 2001 From: Niels Hartvig Date: Fri, 23 Jun 2017 10:47:50 +0200 Subject: [PATCH] Removing throwing error upon github api not returning 200 (we already log it and the Accepted status with empty data set is (hopefully) a throttle issue) --- .../Community/Controllers/GitHubContributorController.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OurUmbraco/Community/Controllers/GitHubContributorController.cs b/OurUmbraco/Community/Controllers/GitHubContributorController.cs index 06642f18..ddca9562 100644 --- a/OurUmbraco/Community/Controllers/GitHubContributorController.cs +++ b/OurUmbraco/Community/Controllers/GitHubContributorController.cs @@ -87,7 +87,8 @@ namespace OurUmbraco.Community.Controllers System.IO.File.WriteAllText(JsonPath, rawJson, Encoding.UTF8); model.Contributors = contributors.ToList(); - } catch (Exception ex) + } + catch (Exception ex) { // Log the error so we can debug it later LogHelper.Error("Unable to load GitHub contributors from the GitHub API", ex); @@ -96,7 +97,8 @@ namespace OurUmbraco.Community.Controllers model.Contributors = GetCachedContributors(); } - } catch (Exception ex) + } + catch (Exception ex) { // Log the error so we can debug it later LogHelper.Error("Unable to load GitHub contributors from the GitHub API", ex); @@ -159,7 +161,7 @@ namespace OurUmbraco.Community.Controllers } return temp; - + }