Handle Invalid format for Upgrade check

This commit is contained in:
BeardinaSuit
2021-03-30 08:57:35 -04:00
committed by Sebastiaan Janssen
parent 958e25d4ba
commit e7ce6a307e

View File

@@ -24,6 +24,11 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
return result ?? new UpgradeResult("None", "", "");
}
catch (UnsupportedMediaTypeException)
{
// this occurs if the server for Our is up but doesn't return a valid result (ex. content type)
return new UpgradeResult("None", "", "");
}
catch (HttpRequestException)
{
// this occurs if the server for Our is down or cannot be reached