Added error handling for both IBN and providers

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-28 08:39:23 -04:00
parent 42a2835633
commit 97bc7ec378
3 changed files with 33 additions and 15 deletions

View File

@@ -15,6 +15,7 @@ using MediaBrowser.Controller.Providers;
using MediaBrowser.Controller.Resolvers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Progress;
using MediaBrowser.Common.Logging;
namespace MediaBrowser.Controller
{
@@ -286,7 +287,14 @@ namespace MediaBrowser.Controller
continue;
}
await provider.FetchAsync(item, args).ConfigureAwait(false);
try
{
await provider.FetchAsync(item, args).ConfigureAwait(false);
}
catch (Exception ex)
{
Logger.LogException(ex);
}
}
}