Explorar o código

Merge pull request #3573 from crobibero/plugin-request-exception

Catch HttpRequestException when requesting plugins
dkanada %!s(int64=5) %!d(string=hai) anos
pai
achega
10d396d56d

+ 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);
                 _logger.LogError(ex, "An error occurred while accessing the plugin manifest: {Manifest}", manifest);
                 return Array.Empty<PackageInfo>();
                 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 />
         /// <inheritdoc />