From ed140dd396e0d2396d8e533af7f98e2a2a725436 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 23 Mar 2023 17:33:34 -0700 Subject: [PATCH] Revert argument exception swallowing for Plex library update --- .../Plex/Server/PlexServerService.cs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs index e7ca5eeb5..30bf9fde3 100644 --- a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs +++ b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerService.cs @@ -102,19 +102,12 @@ namespace NzbDrone.Core.Notifications.Plex.Server { foreach (var location in section.Locations) { - try + if (location.Path.PathEquals(rootFolderPath)) { - if (location.Path.PathEquals(rootFolderPath)) - { - _logger.Debug("Updating matching section location, {0}", location.Path); - UpdateSectionPath(seriesRelativePath, section, location, settings); + _logger.Debug("Updating matching section location, {0}", location.Path); + UpdateSectionPath(seriesRelativePath, section, location, settings); - return; - } - } - catch (ArgumentException) - { - // Swallow argument exception that is thrown by path comparison when comparing paths from different OSes + return; } } }