summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-07-31 14:49:54 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:59:50 -0400
commit85715988f987a2bf1e7016e9ad82e76ec44d4f94 (patch)
tree5d76c1357aa63884c817a4f0fa149230f7ea2da4 /src/SMAPI.Web/Framework
parentb0ec0de2ceff089189a5a1ff999ef86d246040b6 (diff)
downloadSMAPI-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')
-rw-r--r--src/SMAPI.Web/Framework/Clients/Chucklefish/ChucklefishClient.cs2
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;
}