Преглед изворни кода

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 />