From a2cbcaa4f1f02eaae761021da3c628a8eceb6a2a Mon Sep 17 00:00:00 2001 From: Drewster727 Date: Mon, 28 Mar 2016 20:50:18 -0500 Subject: [PATCH] fix notification tests --- .../Notification/NotificationService.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/PlexRequests.Services/Notification/NotificationService.cs b/PlexRequests.Services/Notification/NotificationService.cs index 8477a2159..35e52fd7d 100644 --- a/PlexRequests.Services/Notification/NotificationService.cs +++ b/PlexRequests.Services/Notification/NotificationService.cs @@ -67,8 +67,14 @@ namespace PlexRequests.Services.Notification private static async Task NotifyAsync(INotification notification, NotificationModel model) { - - await NotifyAsync(notification, model, null); + try + { + await notification.NotifyAsync(model).ConfigureAwait(false); + } + catch (Exception ex) + { + Log.Error(ex, $"Notification '{notification.NotificationName}' failed with exception"); + } }