Merge pull request #15961 from theguymadmax/fix-bad-plugin-url

Fix crash when plugin repository has an invalid URL
This commit is contained in:
Bond-009 2026-01-09 18:24:48 +01:00 committed by GitHub
commit 317a3a47c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,6 +156,11 @@ namespace Emby.Server.Implementations.Updates
_logger.LogError(ex, "The URL configured for the plugin repository manifest URL is not valid: {Manifest}", manifest);
return Array.Empty<PackageInfo>();
}
catch (NotSupportedException ex)
{
_logger.LogError(ex, "The URL scheme configured for the plugin repository is not supported: {Manifest}", manifest);
return Array.Empty<PackageInfo>();
}
catch (HttpRequestException ex)
{
_logger.LogError(ex, "An error occurred while accessing the plugin manifest: {Manifest}", manifest);