From b903f61360c9f5a22fc2bda46065d899ff674766 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Thu, 3 Nov 2022 08:54:30 -0500 Subject: [PATCH] Fixed: Notifiarr - fix invalid/broken url (#3053) --- .../Notifications/Notifiarr/NotifiarrProxy.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs b/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs index 89d1bad19..41a1ed904 100644 --- a/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs +++ b/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs @@ -16,7 +16,7 @@ namespace NzbDrone.Core.Notifications.Notifiarr public class NotifiarrProxy : INotifiarrProxy { - private const string URL = "https://notfiarr.com"; + private const string URL = "https://notifiarr.com"; private readonly IHttpClient _httpClient; private readonly IConfigFileProvider _configFileProvider; private readonly Logger _logger; @@ -30,15 +30,7 @@ namespace NzbDrone.Core.Notifications.Notifiarr public void SendNotification(StringDictionary message, NotifiarrSettings settings) { - try - { ProcessNotification(message, settings); - } - catch (NotifiarrException ex) - { - _logger.Error(ex, ex.Message); - throw new NotifiarrException(ex.Message); - } } public ValidationFailure Test(NotifiarrSettings settings) @@ -101,9 +93,9 @@ namespace NzbDrone.Core.Notifications.Notifiarr case 523: case 524: _logger.Error(ex, "Cloudflare Related HTTP Error - Unable to send notification"); - throw new NotifiarrException("Cloudflare Related HTTP Error - Unable to send notification", ex); + throw new NotifiarrException("Cloudflare Related HTTP Error - Unable to send notification", ex); default: - _logger.Error(ex, "Unknown HTTP Error - Unable to send notification"); + _logger.Error(ex, "Unknown HTTP Error - Unable to send notification"); throw new NotifiarrException("Unknown HTTP Error - Unable to send notification", ex); } }