From 694360457d38a34aa24f5fbb21054e5c83ec9b8b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 9 Feb 2021 07:55:25 -0800 Subject: [PATCH] Fixed: Error logged when notification fails to send after episode file is deleted Closes #4289 --- src/NzbDrone.Core/Notifications/NotificationService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/Notifications/NotificationService.cs b/src/NzbDrone.Core/Notifications/NotificationService.cs index 1fe346a1f..a013181b1 100644 --- a/src/NzbDrone.Core/Notifications/NotificationService.cs +++ b/src/NzbDrone.Core/Notifications/NotificationService.cs @@ -198,6 +198,8 @@ namespace NzbDrone.Core.Notifications if (message.EpisodeFile.Episodes.Value.Empty()) { _logger.Trace("Skipping notification for deleted file without an episode (episode metadata was removed)"); + + return; } var deleteMessage = new EpisodeDeleteMessage();