1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-27 00:02:25 +00:00

Fixed: Use pending download if no download client is configured

This commit is contained in:
Qstick 2017-10-29 00:37:15 -04:00
parent 1db04eaa1a
commit fe4499ee97

View file

@ -5,6 +5,7 @@
using NzbDrone.Common.Http;
using NzbDrone.Common.Instrumentation.Extensions;
using NzbDrone.Common.TPL;
using NzbDrone.Core.Download.Clients;
using NzbDrone.Core.Exceptions;
using NzbDrone.Core.Indexers;
using NzbDrone.Core.Messaging.Events;
@ -51,8 +52,7 @@ public void DownloadReport(RemoteAlbum remoteAlbum)
if (downloadClient == null)
{
_logger.Warn("{0} Download client isn't configured yet.", remoteAlbum.Release.DownloadProtocol);
return;
throw new DownloadClientUnavailableException($"{remoteAlbum.Release.DownloadProtocol} Download client isn't configured yet");
}
// Limit grabs to 2 per second.