diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-07-31 14:49:54 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 18:59:50 -0400 |
commit | 85715988f987a2bf1e7016e9ad82e76ec44d4f94 (patch) | |
tree | 5d76c1357aa63884c817a4f0fa149230f7ea2da4 /src/SMAPI.Web/Framework/Clients/Chucklefish | |
parent | b0ec0de2ceff089189a5a1ff999ef86d246040b6 (diff) | |
download | SMAPI-85715988f987a2bf1e7016e9ad82e76ec44d4f94.tar.gz SMAPI-85715988f987a2bf1e7016e9ad82e76ec44d4f94.tar.bz2 SMAPI-85715988f987a2bf1e7016e9ad82e76ec44d4f94.zip |
fix error when Chucklefish page doesn't exist for update checks
Diffstat (limited to 'src/SMAPI.Web/Framework/Clients/Chucklefish')
-rw-r--r-- | src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs b/src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs index 2753e33a..939c32c6 100644 --- a/src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs +++ b/src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs @@ -45,7 +45,7 @@ namespace StardewModdingAPI.Web.Framework.Clients.Chucklefish .GetAsync(string.Format(this.ModPageUrlFormat, id)) .AsString(); } - catch (ApiException ex) when (ex.Status == HttpStatusCode.NotFound) + catch (ApiException ex) when (ex.Status == HttpStatusCode.NotFound || ex.Status == HttpStatusCode.Forbidden) { return null; } |