From b8c31ea89594b8dd3e6953d292546802bbffe4fe Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 17 Jan 2024 03:47:38 +0200 Subject: [PATCH] Throw download as failed for invalid magnet links Closes #4463 --- src/NzbDrone.Core/Download/TorrentClientBase.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Download/TorrentClientBase.cs b/src/NzbDrone.Core/Download/TorrentClientBase.cs index 7a839da06..4e3ec11ab 100644 --- a/src/NzbDrone.Core/Download/TorrentClientBase.cs +++ b/src/NzbDrone.Core/Download/TorrentClientBase.cs @@ -223,9 +223,7 @@ namespace NzbDrone.Core.Download } catch (FormatException ex) { - _logger.Error(ex, "Failed to parse magnetlink for release '{0}': '{1}'", remoteAlbum.Release.Title, magnetUrl); - - return null; + throw new ReleaseDownloadException(remoteAlbum.Release, "Failed to parse magnetlink for release '{0}': '{1}'", ex, remoteAlbum.Release.Title, magnetUrl); } if (hash != null)