浏览代码

Catch HttpRequestException when requesting plugins

crobibero 5 年之前
父节点
当前提交
f40bcff113
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Emby.Server.Implementations/Updates/InstallationManager.cs

+ 5 - 0
Emby.Server.Implementations/Updates/InstallationManager.cs

@@ -148,6 +148,11 @@ namespace Emby.Server.Implementations.Updates
                 _logger.LogError(ex, "An error occurred while accessing the plugin manifest: {Manifest}", manifest);
                 return Array.Empty<PackageInfo>();
             }
+            catch (HttpRequestException ex)
+            {
+                _logger.LogError(ex, "An error occurred while accessing the plugin manifest: {Manifest}", manifest);
+                return Array.Empty<PackageInfo>();
+            }
         }
 
         /// <inheritdoc />