From 97d4063cf3709b5b63fdfd21da312680303c691c Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 14 Mar 2018 21:39:37 -0400 Subject: [PATCH] Added: Missing error check when adding a magnet link to deluge --- src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs b/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs index eb2ed2541..16ca7926e 100644 --- a/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs +++ b/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs @@ -35,6 +35,11 @@ namespace NzbDrone.Core.Download.Clients.Deluge { var actualHash = _proxy.AddTorrentFromMagnet(magnetLink, Settings); + if (actualHash.IsNullOrWhiteSpace()) + { + throw new DownloadClientException("Deluge failed to add magnet " + magnetLink); + } + if (!Settings.MusicCategory.IsNullOrWhiteSpace()) { _proxy.SetLabel(actualHash, Settings.MusicCategory, Settings);